banteg / multicall.py

aggregate results of multiple smart contract calls into one
MIT License
251 stars 108 forks source link

Support switching off state overrides via an environment variable #66

Open prabhatverma286 opened 1 year ago

prabhatverma286 commented 1 year ago

Hardhat and ganache forks currently dont support state overrides. When running this library with a fork, we get execution revert whenever using the chainId as mainnet.

More details can be found here: https://stackoverflow.com/a/75823265/7655219

Would be nice to control the state overrides behaviour using an environment variable

BobTheBuidler commented 1 year ago

This sounds like an agreeable change. If you go ahead and put together a PR for this, I can review it and get it merged. Thanks