revert Documentation for eth_defi.anvil.revert function. revert(web3, snapshot_id)[source] Call evm_revert on Anvil https://book.getfoundry.sh/reference/anvil/ Returns True if a snapshot was reverted Parameters web3 (web3.main.Web3) – snapshot_id (int) – Return type bool