fix(putInCache): also set the default validity to empty object when putInCache is called
This commit is contained in:
@@ -182,7 +182,7 @@ export class CacheableStateEvaluator extends DefaultStateEvaluator {
|
|||||||
if (transaction.confirmationStatus !== undefined && transaction.confirmationStatus !== 'confirmed') {
|
if (transaction.confirmationStatus !== undefined && transaction.confirmationStatus !== 'confirmed') {
|
||||||
return;
|
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', {
|
this.cLogger.debug('Putting into cache', {
|
||||||
contractTxId,
|
contractTxId,
|
||||||
|
|||||||
Reference in New Issue
Block a user