diff --git a/crates/evm/fuzz/src/invariant/mod.rs b/crates/evm/fuzz/src/invariant/mod.rs index 970245fce88d6..11e0e6853de79 100644 --- a/crates/evm/fuzz/src/invariant/mod.rs +++ b/crates/evm/fuzz/src/invariant/mod.rs @@ -89,15 +89,17 @@ impl FuzzRunIdentifiedContracts { } } -#[derive(Debug)] +/// A collection of contracts targeted for invariant testing. +#[derive(Clone, Debug, Default)] pub struct TargetedContracts { + /// The inner map of targeted contracts. pub inner: BTreeMap
, } impl TargetedContracts { /// Returns a new `TargetedContracts` instance. pub fn new() -> Self { - Self { inner: BTreeMap::new() } + Self::default() } /// Returns fuzzed contract abi and fuzzed function from address and provided calldata. @@ -115,7 +117,7 @@ impl TargetedContracts { /// Returns flatten target contract address and functions to be fuzzed. /// Includes contract targeted functions if specified, else all mutable contract functions. - pub fn fuzzed_functions<'a>(&'a self) -> impl Iterator