Improve readability

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

View File

@ -139,7 +139,7 @@ method populateTransaction*(
# Multiply by 2 because during times of congestion, baseFeePerGas can increase by 12.5% per block. # 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 # 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.maxFeePerGas = some(maxFeePerGas)
populated.gasPrice = none(UInt256) populated.gasPrice = none(UInt256)