create_anvil_snapshot_state
Documentation for eth_defi.provider.anvil.create_anvil_snapshot_state function.
- create_anvil_snapshot_state(web3)
Capture the current Anvil state for later reuse.
This is the manual building block for snapshot-based fixtures. Call this once after the expensive setup you want to reuse, such as a mainnet fork or a full protocol deployment.
See
AnvilSnapshotStatefor a pytest usage example.- Parameters
web3 (web3.main.Web3) –
- Return type