diff --git a/crates/blockifier/src/test_utils.rs b/crates/blockifier/src/test_utils.rs index 2c175af604..030278da27 100644 --- a/crates/blockifier/src/test_utils.rs +++ b/crates/blockifier/src/test_utils.rs @@ -47,7 +47,7 @@ pub const TEST_ERC20_CONTRACT_CLASS_HASH: &str = "0x1010"; pub const ERC20_CONTRACT_PATH: &str = "./ERC20/ERC20_Cairo0/ERC20_without_some_syscalls/ERC20/\ erc20_contract_without_some_syscalls_compiled.json"; -#[derive(Clone, Copy, Debug)] +#[derive(Clone, Hash, PartialEq, Eq, Copy, Debug)] pub enum CairoVersion { Cairo0, Cairo1, diff --git a/crates/blockifier/src/test_utils/contracts.rs b/crates/blockifier/src/test_utils/contracts.rs index 61c3c7261c..e93690b90e 100644 --- a/crates/blockifier/src/test_utils/contracts.rs +++ b/crates/blockifier/src/test_utils/contracts.rs @@ -63,7 +63,7 @@ const ERC20_CAIRO1_CONTRACT_PATH: &str = "./ERC20/ERC20_Cairo1/erc20.casm.json"; /// Enum representing all feature contracts. /// The contracts that are implemented in both Cairo versions include a version field. -#[derive(Clone, Copy, Debug, EnumIter)] +#[derive(Clone, Hash, PartialEq, Eq, Copy, Debug, EnumIter)] pub enum FeatureContract { AccountWithLongValidate(CairoVersion), AccountWithoutValidations(CairoVersion),