Skip to content

Commit

Permalink
fix(putInCache): also set the default validity to empty object when `…
Browse files Browse the repository at this point in the history
…putInCache` is called
  • Loading branch information
dtfiedler authored and ppedziwiatr committed Jan 31, 2024
1 parent c2927a2 commit 51f5063
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/modules/impl/CacheableStateEvaluator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 51f5063

Please sign in to comment.