Forward some missing EIP-1559 fields to call and estimateGas (#1766).

This commit is contained in:
Richard Moore 2021-07-29 23:12:29 -04:00
parent 63f8b28223
commit be3854e648
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651

@ -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));
});