What's the gas price of the old tx? What's the gas price of the new tx?

Jul 13, 2022, 6:36 PM
I'm increasing the gas by 20%
Jul 13, 2022, 6:37 PM
Then it's either a bug in the lib or you made a mistake when typing the attribute name for the nonce or the gas price (causing it to be auto-determined) or you're too slow when replacing it
Jul 13, 2022, 6:38 PM
How can I speed up this code?
Jul 13, 2022, 6:40 PM
Why are you dividing by that huge number? How about you just don't do that?
Jul 13, 2022, 6:41 PM
I try to calculate how much maximum balance I can withdraw with such gas
I don't think it takes a lot of time
Jul 13, 2022, 6:42 PM
Yeah but it messes your new gas value up
It then is so low that anyone will reject it
Jul 13, 2022, 6:43 PM
Why?
Jul 13, 2022, 6:44 PM
You take a value. Idk how it's scaled. But then you multiply it with 1.2 and divide it by a big number. It's now tiny
Jul 13, 2022, 6:45 PM
Here, print gasPrice
Jul 13, 2022, 6:47 PM
Wait, you fucked it up by 1e-9 and now you're "correcting" it by a factor of 1e18?
You're probably out of funds at that point or making a miner very happy
Bc your tx is going to pay as much as a literal billion txs
Jul 13, 2022, 6:49 PM
I can show the transactions that were obtained with the given code
This
Jul 13, 2022, 7:06 PM
That library is using a string
Bc JS numbers are not mighty enough
But what you get from a HTML Element is a string already
You cannot express big integers as js numbers
Jul 13, 2022, 7:13 PM

© 2024 Draquery.com All rights reserved.