hopr_chain_types

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.