Skip to content

Commit

Permalink
Closes #4211
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 0f97889 commit 1f3ebc3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/web3-core-helpers/src/formatters.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1f3ebc3

Please sign in to comment.