-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Make eth_call gas limit configurable #3783
Comments
there's the --gas-limit argument to set this to any value.
I guess we could add an alias for |
@mattsse this argument is very useful when calling Btw, I really appreciate how responsive the Foundry/Anvil team is ✨ thank you all for the great work |
eth_call is executed without creating a transaction on the chain, and instead returns the result as it would if included in a block. So we don't want to return a success if the call would actually fail if mined. but I'm not sure if the same applies to hardhat. there's also |
anvil doesn't seem to respect the block gas limit for |
Experienced the same issue while forking Goerli, call via multicall which were working on Goerli go |
I think that setting the env var mentioned here will probably fix it. I'm not a rust dev though, so I'm not sure how to do this exactly. Can someone weigh in? |
Same behaviour here. I made a mainnet fork using anvil and changed the gas limit to 100M, but when I |
can't reproduce this, sorry. This issue is a bit difficult for me to understand, because:
are configurable and that being said, I'll enable the |
Component
Anvil
Describe the feature you would like
Using a multicall contract to read a lot of data at once is a common use case. Anvil caps the gas limit of
eth_call
to the maximum gas limit of a block. I'm running intoEVM error CallerGasLimitMoreThenBlock
when trying to read lots of data from a multicall contract (> 100 calls)Additional context
For any
eth_call
, set the gas limit to18446744073709551615
(the maximum possible value)The text was updated successfully, but these errors were encountered: