In your case, the chances of carious exposed (irreversible pulpitis) in yesterday filled teeth. In this condition after filling pain occurs, due to infective pulp pressure; which was relieved after access opening of tooth and indicated the RCT.
But least chances in RCT teeth.
Next Steps
please consult dentist and radiograph is required for diagnosis.