From be3854e648fdef0478db8a64c26be6d9e90cf453 Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Thu, 29 Jul 2021 23:12:29 -0400 Subject: [PATCH] Forward some missing EIP-1559 fields to call and estimateGas (#1766). --- packages/providers/src.ts/base-provider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/providers/src.ts/base-provider.ts b/packages/providers/src.ts/base-provider.ts index 110154bb9b..0eeede4b9d 100644 --- a/packages/providers/src.ts/base-provider.ts +++ b/packages/providers/src.ts/base-provider.ts @@ -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)); });