Assign none to maxPriorityFeePerGas for non EIP-1559 transaction to avoid potential side effect in wallet signing

This commit is contained in:
Arnaud 2025-05-21 17:17:05 +02:00
parent d961425147
commit 9ca0dac443
No known key found for this signature in database
GPG Key ID: 20E40A5D3110766F

View File

@ -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: