From 248c6982f08da299f7d020d2f6aa7062fc9d0de3 Mon Sep 17 00:00:00 2001 From: Tyler Loewen Date: Sat, 9 Dec 2023 19:44:14 -0800 Subject: [PATCH] Add timeout param to ContractTransactionResponse#wait --- src.ts/contract/wrappers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src.ts/contract/wrappers.ts b/src.ts/contract/wrappers.ts index 3c056e632f..38ec9edf60 100644 --- a/src.ts/contract/wrappers.ts +++ b/src.ts/contract/wrappers.ts @@ -132,8 +132,8 @@ export class ContractTransactionResponse extends TransactionResponse { * and the transaction has not been mined, otherwise this will * wait until enough confirmations have completed. */ - async wait(confirms?: number): Promise { - const receipt = await super.wait(confirms); + async wait(confirms?: number, timeout?: number): Promise { + const receipt = await super.wait(confirms, timeout); if (receipt == null) { return null; } return new ContractTransactionReceipt(this.#iface, this.provider, receipt); }