revert

Documentation for eth_defi.provider.anvil.revert function.

revert(web3, snapshot_id)

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