mirror of
https://github.com/logos-storage/nim-ethers.git
synced 2026-04-04 10:43:21 +00:00
Improve readability
This commit is contained in:
parent
2336db0ffb
commit
fe19923051
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user