diff --git a/packages/web3-core-helpers/src/formatters.js b/packages/web3-core-helpers/src/formatters.js index 8c2d89efa5b..8947c68b94f 100644 --- a/packages/web3-core-helpers/src/formatters.js +++ b/packages/web3-core-helpers/src/formatters.js @@ -157,6 +157,10 @@ var _txInputFormatter = function (options) { if (options.gas || options.gasLimit) { options.gas = options.gas || options.gasLimit; } + + if (options.maxPriorityFeePerGas || options.maxFeePerGas) { + delete options.gasPrice; + } ['gasPrice', 'gas', 'value', 'maxPriorityFeePerGas', 'maxFeePerGas', 'nonce'].filter(function (key) { return options[key] !== undefined;