Set none value for maxFeePerGas in case of non EIP-1559 transaction

This commit is contained in:
Arnaud 2025-05-20 15:52:26 +02:00
parent fe19923051
commit d961425147
No known key found for this signature in database
GPG Key ID: 20E40A5D3110766F

View File

@ -147,6 +147,7 @@ method populateTransaction*(
trace "EIP-1559 is supported", maxPriorityFeePerGas = maxPriorityFeePerGas, maxFeePerGas = maxFeePerGas
else:
populated.gasPrice = some(transaction.gasPrice |? (await signer.getGasPrice()))
populated.maxFeePerGas = none(UInt256)
trace "EIP-1559 is not supported", gasPrice = populated.gasPrice
if transaction.nonce.isNone and transaction.gasLimit.isNone: