Skip to content

Commit

Permalink
fix: wait for confirmation return value
Browse files Browse the repository at this point in the history
  • Loading branch information
szynwelski authored and ppedziwiatr committed Jul 17, 2023
1 parent a2a429f commit 92e3ec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/contract/HandlerBasedContract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ export class HandlerBasedContract<State> implements Contract<State> {
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;
Expand Down

0 comments on commit 92e3ec4

Please sign in to comment.