Skip to content

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

Open
wants to merge 4 commits into
base: development
Choose a base branch
from
Open

Inner revert #1807

wants to merge 4 commits into from

Conversation

dvc94ch
Copy link
Collaborator

@dvc94ch dvc94ch commented Apr 15, 2025

Closes #1803

Currently doesn't work due to faucet implementation

@dvc94ch dvc94ch requested a review from haider-rs April 16, 2025 09:43
Copy link
Contributor

@haider-rs haider-rs left a 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",
Copy link
Contributor

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?

Copy link
Collaborator Author

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

@dvc94ch
Copy link
Collaborator Author

dvc94ch commented Apr 16, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

run tests on real chains
2 participants