foundry
foundry copied to clipboard
feat: Make eth_call gas limit configurable
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 into EVM 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 to 18446744073709551615 (the maximum possible value)