From 92e3ec4bffdea27abb791c38b77a115d7c8bd8f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Szynwelski?= Date: Mon, 17 Jul 2023 14:34:11 +0200 Subject: [PATCH] fix: wait for confirmation return value --- src/contract/HandlerBasedContract.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/contract/HandlerBasedContract.ts b/src/contract/HandlerBasedContract.ts index 4e7262f7..8f23dd5a 100644 --- a/src/contract/HandlerBasedContract.ts +++ b/src/contract/HandlerBasedContract.ts @@ -495,7 +495,7 @@ export class HandlerBasedContract implements Contract { if (status.confirmed === null) { this.logger.info(`Transaction ${transactionId} not yet confirmed. Waiting another 20 seconds before next check.`); await sleep(20000); - await this.waitForConfirmation(transactionId); + return this.waitForConfirmation(transactionId); } else { this.logger.info(`Transaction ${transactionId} confirmed`, status); return status;