-
Notifications
You must be signed in to change notification settings - Fork 0
Inner revert #1807
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
base: development
Are you sure you want to change the base?
Inner revert #1807
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks overall looks fine.
But the Astar image is just another local chain we are running test on. I think real chains should be testnet chains or mainnet chains deployed if wanna run on it. like forking using anvil and running it inside the docker container/or directly using their rpc endpoints.
https://book.getfoundry.sh/guides/forking-mainnet-with-cast-anvil
let image = GenericImage::new("ghcr.io/foundry-rs/foundry", "latest") | ||
.with_exposed_port(8545.tcp()) | ||
.with_env_var("ANVIL_IP_ADDR", "0.0.0.0").with_cmd([ | ||
"anvil -b=6 --steps-tracing --order=fifo --base-fee=0 --no-request-size-limit --slots-in-an-epoch 1 --state /state/anvil -s 7", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is block time 6 seconds necessary? wont it make test fast if we reduce it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can try, but I don't think it makes the test faster
we can already run tests on real chains, worked on that last week. we also need to test with the actual rpc/evm implementations to catch differences that we don't catch with just anvil. for example as we found out yesterday, astar is probably reverting the transaction because of the inner revert, something that doesn't happen with anvil. |
Closes #1803
Currently doesn't work due to faucet implementation