Skip to content

Commit

Permalink
fix: state is being put in cache twice when only one interaction is m…
Browse files Browse the repository at this point in the history
…issing
  • Loading branch information
asiaziola committed Feb 13, 2024
1 parent 7a53cc3 commit eb51016
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/modules/impl/DefaultStateEvaluator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ export abstract class DefaultStateEvaluator implements StateEvaluator {

// state could have been fully retrieved from cache
// or there were no interactions below requested sort key
if (lastConfirmedTxState !== null) {
if (lastConfirmedTxState !== null && !(contract.isRoot() && missingInteractions.length == 1)) {
await this.onStateEvaluated(lastConfirmedTxState.tx, executionContext, lastConfirmedTxState.state);
}

Expand Down

0 comments on commit eb51016

Please sign in to comment.