diff --git a/packages/web3-core-helpers/src/formatters.js b/packages/web3-core-helpers/src/formatters.js index eef58403a91..8c2d89efa5b 100644 --- a/packages/web3-core-helpers/src/formatters.js +++ b/packages/web3-core-helpers/src/formatters.js @@ -158,7 +158,7 @@ var _txInputFormatter = function (options) { options.gas = options.gas || options.gasLimit; } - ['gasPrice', 'gas', 'value', 'nonce'].filter(function (key) { + ['gasPrice', 'gas', 'value', 'maxPriorityFeePerGas', 'maxFeePerGas', 'nonce'].filter(function (key) { return options[key] !== undefined; }).forEach(function (key) { options[key] = utils.numberToHex(options[key]);