fix(putInCache): also set the default validity to empty object when putInCache is called

This commit is contained in:
dtfiedler
2024-01-26 11:07:54 -07:00
committed by just_ppe
parent c2927a2943
commit 51f50633f5

View File

@@ -182,7 +182,7 @@ export class CacheableStateEvaluator extends DefaultStateEvaluator {
if (transaction.confirmationStatus !== undefined && transaction.confirmationStatus !== 'confirmed') {
return;
}
const stateToCache = new EvalStateResult(state.state, state.validity, state.errorMessages || {});
const stateToCache = new EvalStateResult(state.state, state.validity || {}, state.errorMessages || {});
this.cLogger.debug('Putting into cache', {
contractTxId,