From d961425147807a3153c0ebf5220a72af5827d997 Mon Sep 17 00:00:00 2001 From: Arnaud Date: Tue, 20 May 2025 15:52:26 +0200 Subject: [PATCH] Set none value for maxFeePerGas in case of non EIP-1559 transaction --- ethers/signer.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/ethers/signer.nim b/ethers/signer.nim index 84d1c45..9f953e0 100644 --- a/ethers/signer.nim +++ b/ethers/signer.nim @@ -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: