Skip to content

Commit

Permalink
Set chain_id for hive tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementWalter committed Nov 13, 2024
1 parent 653122f commit bdeadbd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/test_utils/hive/mod.rs
Original file line number Diff line number Diff line change
@@ -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},
};
Expand Down Expand Up @@ -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])?;
Expand Down

0 comments on commit bdeadbd

Please sign in to comment.