diff --git a/package.json b/package.json index 895597ef..d0186039 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "warp-contracts", - "version": "1.4.36-beta.3", + "version": "1.4.36-beta.4", "description": "An implementation of the SmartWeave smart contract protocol.", "types": "./lib/types/index.d.ts", "main": "./lib/cjs/index.js", diff --git a/src/core/modules/impl/DefaultStateEvaluator.ts b/src/core/modules/impl/DefaultStateEvaluator.ts index 08444b1b..8636e201 100644 --- a/src/core/modules/impl/DefaultStateEvaluator.ts +++ b/src/core/modules/impl/DefaultStateEvaluator.ts @@ -344,9 +344,13 @@ export abstract class DefaultStateEvaluator implements StateEvaluator { this.logger.info('Update benchmark', updateBenchmark.elapsed()); if (validity[missingInteraction.id]) { const commitBenchmark = Benchmark.measure(); - await contract.interactionState().commit(missingInteraction, forceStateStoreToCache); - commitBenchmark.stop(); - this.logger.info('Commit benchmark', commitBenchmark.elapsed()); + contract + .interactionState() + .commit(missingInteraction, forceStateStoreToCache) + .then(() => { + commitBenchmark.stop(); + this.logger.info('Commit benchmark', commitBenchmark.elapsed()); + }); } else { const rollbackBenchmark = Benchmark.measure(); await contract.interactionState().rollback(missingInteraction, forceStateStoreToCache);