From 9ca0dac443f2564cdb4c0af5d23a0df6a1d7a5cf Mon Sep 17 00:00:00 2001 From: Arnaud Date: Wed, 21 May 2025 17:17:05 +0200 Subject: [PATCH] Assign none to maxPriorityFeePerGas for non EIP-1559 transaction to avoid potential side effect in wallet signing --- ethers/signer.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/ethers/signer.nim b/ethers/signer.nim index 9f953e0..e38509e 100644 --- a/ethers/signer.nim +++ b/ethers/signer.nim @@ -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: