We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ethers-io
Learn more about funding links in repositories.
Report abuse
1 parent be5ec2d commit 095de51Copy full SHA for 095de51
src.ts/contract/wrappers.ts
@@ -132,8 +132,8 @@ export class ContractTransactionResponse extends TransactionResponse {
132
* and the transaction has not been mined, otherwise this will
133
* wait until enough confirmations have completed.
134
*/
135
- async wait(confirms?: number): Promise<null | ContractTransactionReceipt> {
136
- const receipt = await super.wait(confirms);
+ async wait(confirms?: number, timeout?: number): Promise<null | ContractTransactionReceipt> {
+ const receipt = await super.wait(confirms, timeout);
137
if (receipt == null) { return null; }
138
return new ContractTransactionReceipt(this.#iface, this.provider, receipt);
139
}
0 commit comments