Delete gas price when using EIP-1559

This commit is contained in:
Arnaud 2025-04-02 09:43:34 +02:00
parent 8750c66a44
commit 2510bec425
No known key found for this signature in database
GPG Key ID: 20E40A5D3110766F

View File

@ -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()))