mirror of
https://github.com/logos-storage/nim-ethers.git
synced 2026-01-03 22:23:06 +00:00
Delete gas price when using EIP-1559
This commit is contained in:
parent
8750c66a44
commit
2510bec425
@ -142,6 +142,8 @@ method populateTransaction*(
|
||||
let maxFeePerGas = baseFeePerGas * 2 + maxPriorityFeePerGas
|
||||
populated.maxFeePerGas = some(maxFeePerGas)
|
||||
|
||||
populated.gasPrice = none(UInt256)
|
||||
|
||||
trace "EIP-1559 is supported", maxPriorityFeePerGas = maxPriorityFeePerGas, maxFeePerGas = maxFeePerGas
|
||||
else:
|
||||
populated.gasPrice = some(transaction.gasPrice |? (await signer.getGasPrice()))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user