Replies: 1 comment 4 replies
-
In other words, how do I mean 1.2 in the new version
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Ethers Version
6.2.3
Search Terms
No response
Describe the Problem
I was run a front-run bot with ethers V5, i set
maxPriorityFeePerGas
for 1.2times, here is the code in v5, everything is oktx.maxPriorityFeePerGas * 1.2
But when i update to v6, there is no longer a BigNumber class. how can i adapt the code to the latest version ?
I tried
tx.maxPriorityFeePerGas * 1.2n
, obviously, the wording of 1.2n is wrong, so how can I express that the gas fee will be increased by 1.2 times?Beta Was this translation helpful? Give feedback.
All reactions