--gas-estimate-multiplier increases both the gasLimit and gasUsed, but this is wrong. #11297
Unanswered
sdajklfw389
asked this question in
Help
Replies: 0 comments
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.
-
Component
Anvil
Have you ensured that all of these are up to date?
What version of Foundry are you on?
1.2.3-stable
What command(s) is the bug in?
source scripts/setup_local.sh
Describe the bug
I have a fork branch of gmx: https://github.com/sdajklfw389/my-gmx-fork
I wanted to make a local gmx chain and do some testing. But there is one failure when trying to deploy the Vault contract, which is relatively big.
First of all
I have tried to use --disable-gas-limit to disable the upper limit, but that does not work :/
So I tried to use --gas-estimate-multiplier to increase the upper gas limit, firstly I tried with --gas-estimate-multiplier 4000:
So we know there are two transactions failing, one is the Vault contract.
and from cast receipt and tx I can see that the gasUsed is still equaling gasLimit(both are 227391720):
But this is fundamentally wrong, because if I tried to get the estimation of the gas of the Vault contract, I got 7390230.
Below is how I got the estimation of the Vault contract transaction:
the result is:
so the estimation of the Vault contract is just 7390230.
now we made the gasLimit increased to 227391720 and still failing the transaction, and the gasUsed also increases to 227391720. Which makes no sense. The gasUsed should be around the estimation, 7390230.
Beta Was this translation helpful? Give feedback.
All reactions