From bdeadbde02e062c5cc69214347467cc79fbdf754 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Walter?= Date: Wed, 13 Nov 2024 11:22:39 +0100 Subject: [PATCH] Set chain_id for hive tests --- src/test_utils/hive/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test_utils/hive/mod.rs b/src/test_utils/hive/mod.rs index cbc4bfb73..09872db0b 100644 --- a/src/test_utils/hive/mod.rs +++ b/src/test_utils/hive/mod.rs @@ -1,6 +1,7 @@ use super::{ constants::{ - ACCOUNT_CAIRO1_HELPERS_CLASS_HASH, ACCOUNT_IMPLEMENTATION, KAKAROT_EVM_TO_STARKNET_ADDRESS, OWNABLE_OWNER, + ACCOUNT_CAIRO1_HELPERS_CLASS_HASH, ACCOUNT_IMPLEMENTATION, KAKAROT_CHAIN_ID, KAKAROT_EVM_TO_STARKNET_ADDRESS, + OWNABLE_OWNER, }, katana::genesis::{KatanaGenesisBuilder, Loaded}, }; @@ -96,6 +97,7 @@ impl HiveGenesisConfig { get_storage_var_address(ACCOUNT_CAIRO1_HELPERS_CLASS_HASH, &[])?, builder.cache_load("cairo1_helpers")?, ), + (get_storage_var_address(KAKAROT_CHAIN_ID, &[])?, self.config.chain_id.into()), ]); let key = get_storage_var_address("ERC20_allowances", &[starknet_address, kakarot_address])?;