foundry icon indicating copy to clipboard operation
foundry copied to clipboard

feat: Make eth_call gas limit configurable

Open Theo- opened this issue 2 years ago • 8 comments

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)

Theo- avatar Nov 29 '22 00:11 Theo-