Skip to content

Commit

Permalink
Skip checking confirmation count if confirms is 0 (ethers-io#4229, et…
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo authored and Woodpile37 committed Jan 14, 2024
1 parent 65dafdd commit 7c09054
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src.ts/providers/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1462,6 +1462,8 @@ export class TransactionResponse implements TransactionLike<string>, Transaction

const receipt = await this.provider.getTransactionReceipt(this.hash);

if (confirms === 0) { return receipt; }

if (receipt) {
if ((await receipt.confirmations()) >= confirms) { return receipt; }

Expand Down

0 comments on commit 7c09054

Please sign in to comment.