Skip to content

Commit

Permalink
Skip checking confirmation count if confirms is 0 (#4229, #4242).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Jul 15, 2023
1 parent 43c253a commit 492919d
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 492919d

Please # to comment.