fix: wait for confirmation return value
This commit is contained in:
committed by
just_ppe
parent
a2a429fad9
commit
92e3ec4bff
@@ -495,7 +495,7 @@ export class HandlerBasedContract<State> implements Contract<State> {
|
|||||||
if (status.confirmed === null) {
|
if (status.confirmed === null) {
|
||||||
this.logger.info(`Transaction ${transactionId} not yet confirmed. Waiting another 20 seconds before next check.`);
|
this.logger.info(`Transaction ${transactionId} not yet confirmed. Waiting another 20 seconds before next check.`);
|
||||||
await sleep(20000);
|
await sleep(20000);
|
||||||
await this.waitForConfirmation(transactionId);
|
return this.waitForConfirmation(transactionId);
|
||||||
} else {
|
} else {
|
||||||
this.logger.info(`Transaction ${transactionId} confirmed`, status);
|
this.logger.info(`Transaction ${transactionId} confirmed`, status);
|
||||||
return status;
|
return status;
|
||||||
|
|||||||
Reference in New Issue
Block a user