Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 1f3ebc3

Browse files
Greg MarkouGreg Markou
Greg Markou
authored and
Greg Markou
committed
Closes #4211
1 parent 0f97889 commit 1f3ebc3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/web3-core-helpers/src/formatters.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,10 @@ var _txInputFormatter = function (options) {
157157
if (options.gas || options.gasLimit) {
158158
options.gas = options.gas || options.gasLimit;
159159
}
160+
161+
if (options.maxPriorityFeePerGas || options.maxFeePerGas) {
162+
delete options.gasPrice;
163+
}
160164

161165
['gasPrice', 'gas', 'value', 'maxPriorityFeePerGas', 'maxFeePerGas', 'nonce'].filter(function (key) {
162166
return options[key] !== undefined;

0 commit comments

Comments
 (0)