reset_anvil_snapshot
Documentation for eth_defi.provider.anvil.reset_anvil_snapshot function.
- reset_anvil_snapshot(web3, state)
Revert a shared Anvil backend to a stored snapshot and resave it.
evm_revertconsumes the snapshot it restores. Because of this, the helper immediately creates a new snapshot after each reset so the sameAnvilSnapshotStateinstance can be reused by the next test.See
AnvilSnapshotStatefor a pytest usage example.- Parameters
web3 (web3.main.Web3) –
- Return type
None