Skip to content

Commit

Permalink
Closes #4210 - allow non-hex values for eip1559 gas params
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Markou authored and Greg Markou committed Jul 31, 2021
1 parent 458a47a commit 0f97889
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web3-core-helpers/src/formatters.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 0f97889

Please sign in to comment.