hopr_chain_types::utils

Function create_anvil

Source
pub fn create_anvil(block_time: Option<Duration>) -> AnvilInstance
Expand description

Creates local Anvil instance.

Used for testing. When block time is given, new blocks are mined periodically. Otherwise, a new block is mined per transaction.

Uses a fixed mnemonic to make generated accounts deterministic.