Skip to content

Commit

Permalink
v1.4.36-beta.4
Browse files Browse the repository at this point in the history
  • Loading branch information
asiaziola committed Aug 12, 2024
1 parent d29fab0 commit ecdb6f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
10 changes: 7 additions & 3 deletions src/core/modules/impl/DefaultStateEvaluator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ecdb6f9

Please sign in to comment.