From ecdb6f9dd953d121ee2d7ca4045718c1cbae82d8 Mon Sep 17 00:00:00 2001 From: Asia Date: Mon, 12 Aug 2024 09:16:40 +0200 Subject: [PATCH] v1.4.36-beta.4 --- package.json | 2 +- src/core/modules/impl/DefaultStateEvaluator.ts | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) 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);