You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should simulate all transactions before sending any. The challenge is that gas estimates (eth_call) don't work unless the sending account is funded, so you need to fund it with a sufficient amount of ETH before calling. Additionally, estimating gas for setup txs won't be accurate unless the contracts are deployed.
If we want to know the balance required to make the whole thing succeed before we decide to deploy the contracts, we can simulate the whole thing with an account that has unlimited ETH, then check the balance delta when we're done to get the true setup cost.
If we're OK with deploying the contracts first, then evaluating the cost of the setup txs (to make use of gas estimates, which I think will be easier to implement than the former solution), then we first need to implement resumable setup.
Describe the bug
If
--min-balance
isn't enough to fund the whole setup stage (contract deployments & setup txs) you won't see the error until you run out of ether.To Reproduce
run
contender setup
on uniV2 scenario with--min-balance 9
Expected behavior
Contracts will deploy, but the WETH deposit will fail.
The text was updated successfully, but these errors were encountered: