mirror of
https://github.com/logos-storage/nim-ethers.git
synced 2026-01-05 23:23:08 +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
|
let maxFeePerGas = baseFeePerGas * 2 + maxPriorityFeePerGas
|
||||||
populated.maxFeePerGas = some(maxFeePerGas)
|
populated.maxFeePerGas = some(maxFeePerGas)
|
||||||
|
|
||||||
|
populated.gasPrice = none(UInt256)
|
||||||
|
|
||||||
trace "EIP-1559 is supported", maxPriorityFeePerGas = maxPriorityFeePerGas, maxFeePerGas = maxFeePerGas
|
trace "EIP-1559 is supported", maxPriorityFeePerGas = maxPriorityFeePerGas, maxFeePerGas = maxFeePerGas
|
||||||
else:
|
else:
|
||||||
populated.gasPrice = some(transaction.gasPrice |? (await signer.getGasPrice()))
|
populated.gasPrice = some(transaction.gasPrice |? (await signer.getGasPrice()))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user