mirror of
https://github.com/logos-storage/nim-ethers.git
synced 2026-01-07 08:03:12 +00:00
Assign none to maxPriorityFeePerGas for non EIP-1559 transaction to avoid potential side effect in wallet signing
This commit is contained in:
parent
d961425147
commit
9ca0dac443
@ -148,6 +148,7 @@ method populateTransaction*(
|
||||
else:
|
||||
populated.gasPrice = some(transaction.gasPrice |? (await signer.getGasPrice()))
|
||||
populated.maxFeePerGas = none(UInt256)
|
||||
populated.maxPriorityFeePerGas = none(UInt256)
|
||||
trace "EIP-1559 is not supported", gasPrice = populated.gasPrice
|
||||
|
||||
if transaction.nonce.isNone and transaction.gasLimit.isNone:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user