From fe19923051e992cd570ca63774a8dce07e355e2f Mon Sep 17 00:00:00 2001 From: Arnaud Date: Tue, 20 May 2025 15:51:52 +0200 Subject: [PATCH] Improve readability --- ethers/signer.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethers/signer.nim b/ethers/signer.nim index 9646a5c..84d1c45 100644 --- a/ethers/signer.nim +++ b/ethers/signer.nim @@ -139,7 +139,7 @@ method populateTransaction*( # Multiply by 2 because during times of congestion, baseFeePerGas can increase by 12.5% per block. # https://github.com/ethers-io/ethers.js/discussions/3601#discussioncomment-4461273 - let maxFeePerGas = transaction.maxFeePerGas |? baseFeePerGas * 2 + maxPriorityFeePerGas + let maxFeePerGas = transaction.maxFeePerGas |? (baseFeePerGas * 2 + maxPriorityFeePerGas) populated.maxFeePerGas = some(maxFeePerGas) populated.gasPrice = none(UInt256)