Skip to content

Commit ecdb6f9

Browse files
committed
v1.4.36-beta.4
1 parent d29fab0 commit ecdb6f9

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "warp-contracts",
3-
"version": "1.4.36-beta.3",
3+
"version": "1.4.36-beta.4",
44
"description": "An implementation of the SmartWeave smart contract protocol.",
55
"types": "./lib/types/index.d.ts",
66
"main": "./lib/cjs/index.js",

src/core/modules/impl/DefaultStateEvaluator.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,9 +344,13 @@ export abstract class DefaultStateEvaluator implements StateEvaluator {
344344
this.logger.info('Update benchmark', updateBenchmark.elapsed());
345345
if (validity[missingInteraction.id]) {
346346
const commitBenchmark = Benchmark.measure();
347-
await contract.interactionState().commit(missingInteraction, forceStateStoreToCache);
348-
commitBenchmark.stop();
349-
this.logger.info('Commit benchmark', commitBenchmark.elapsed());
347+
contract
348+
.interactionState()
349+
.commit(missingInteraction, forceStateStoreToCache)
350+
.then(() => {
351+
commitBenchmark.stop();
352+
this.logger.info('Commit benchmark', commitBenchmark.elapsed());
353+
});
350354
} else {
351355
const rollbackBenchmark = Benchmark.measure();
352356
await contract.interactionState().rollback(missingInteraction, forceStateStoreToCache);

0 commit comments

Comments
 (0)