From 4135acde635fd40d2fda4d1f3e20de4deb248160 Mon Sep 17 00:00:00 2001 From: Asia Date: Tue, 13 Aug 2024 09:13:49 +0200 Subject: [PATCH] v1.4.45-warpy.0 --- package.json | 2 +- src/contract/states/ContractInteractionState.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 74071bc4..a227df88 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "warp-contracts", - "version": "1.4.45", + "version": "1.4.45-warpy.0", "description": "An implementation of the SmartWeave smart contract protocol.", "types": "./lib/types/index.d.ts", "main": "./lib/cjs/index.js", diff --git a/src/contract/states/ContractInteractionState.ts b/src/contract/states/ContractInteractionState.ts index 60bfd158..027eeaf4 100644 --- a/src/contract/states/ContractInteractionState.ts +++ b/src/contract/states/ContractInteractionState.ts @@ -77,7 +77,7 @@ export class ContractInteractionState implements InteractionState { latestState.set(k, state.cachedValue); } }); - await this.doStoreJson(latestState, interaction, forceStore); + this.doStoreJson(latestState, interaction, forceStore).then(); await this.commitKVs(); } finally { this.reset(); @@ -91,7 +91,7 @@ export class ContractInteractionState implements InteractionState { async rollback(interaction: GQLNodeInterface, forceStateStoreToCache: boolean): Promise { try { - await this.doStoreJson(this._initialJson, interaction, forceStateStoreToCache); + this.doStoreJson(this._initialJson, interaction, forceStateStoreToCache).then(); await this.rollbackKVs(); } finally { this.reset();