cartesi / rollups

Cartesi Rollups
30 stars 12 forks source link

test mainnet fork #217

Closed ZzzzHui closed 1 year ago

ZzzzHui commented 1 year ago

📚 Context

Forge supports testing in a forked environment by using --fork-url option. We utilize this to test the V1 contracts that were deployed to Ethereum mainnet.

✔️ Solution

The solution is pushed to branch feature/test-mainnet-fork

Context:

So the final command to run tests in mainnet fork is: forge test -vvv --fork-url <your_rpc_url> --no-match-test invariant

P.S. also need to run ./update-proofs.sh to update proofs

@cartesi/rollups-unit