Skip to content

Commit

Permalink
Forward some missing EIP-1559 fields to call and estimateGas (#1766).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Jul 30, 2021
1 parent 63f8b28 commit be3854e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/providers/src.ts/base-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1233,7 +1233,7 @@ export class BaseProvider extends Provider implements EnsProvider {
tx[key] = Promise.resolve(values[key]).then((v) => (v ? this._getAddress(v): null))
});

["gasLimit", "gasPrice", "value"].forEach((key) => {
["gasLimit", "gasPrice", "maxFeePerGas", "maxPriorityFeePerGas", "value"].forEach((key) => {
if (values[key] == null) { return; }
tx[key] = Promise.resolve(values[key]).then((v) => (v ? BigNumber.from(v): null));
});
Expand Down

0 comments on commit be3854e

Please sign in to comment.