Skip to content

Commit

Permalink
Fixed null confirmations in Wallet transaction (#1706).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Jul 6, 2021
1 parent a1f8d18 commit 0f0d0c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/providers/src.ts/base-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1211,6 +1211,7 @@ export class BaseProvider extends Provider implements EnsProvider {
await this.getNetwork();
const hexTx = await Promise.resolve(signedTransaction).then(t => hexlify(t));
const tx = this.formatter.transaction(signedTransaction);
if (tx.confirmations == null) { tx.confirmations = 0; }
const blockNumber = await this._getInternalBlockNumber(100 + 2 * this.pollingInterval);
try {
const hash = await this.perform("sendTransaction", { signedTransaction: hexTx });
Expand Down

0 comments on commit 0f0d0c0

Please sign in to comment.