Skip to content

Commit

Permalink
Fixed waiting for confirmations in deployment transactions (ethers-io…
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo authored and Woodpile37 committed Jan 14, 2024
1 parent 64a84f4 commit 37e1fd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src.ts/contract/wrappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export class ContractTransactionResponse extends TransactionResponse {
* wait until enough confirmations have completed.
*/
async wait(confirms?: number): Promise<null | ContractTransactionReceipt> {
const receipt = await super.wait();
const receipt = await super.wait(confirms);
if (receipt == null) { return null; }
return new ContractTransactionReceipt(this.#iface, this.provider, receipt);
}
Expand Down

0 comments on commit 37e1fd1

Please sign in to comment.