From af65d78be9de7643e15b707914ae01f495333e82 Mon Sep 17 00:00:00 2001 From: poma Date: Wed, 17 Feb 2021 08:39:50 +0300 Subject: [PATCH] fix await --- src/Transaction.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Transaction.js b/src/Transaction.js index 3329c4f..5822108 100644 --- a/src/Transaction.js +++ b/src/Transaction.js @@ -100,7 +100,7 @@ class Transaction { try { await this._prepare() await this._send() - const receipt = this._waitForConfirmations() + const receipt = await this._waitForConfirmations() // we could have bumped nonce during execution, so get the latest one + 1 this.manager._nonce = this.tx.nonce + 1 return receipt