From dde1129cfcc2ac2c2ab93a1ac7bbc65799ad4979 Mon Sep 17 00:00:00 2001 From: Ammar Arif Date: Tue, 14 May 2024 13:30:18 -0400 Subject: [PATCH] style --- crates/katana/storage/provider/src/test_utils.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/katana/storage/provider/src/test_utils.rs b/crates/katana/storage/provider/src/test_utils.rs index f396829927..4eeb0cdca1 100644 --- a/crates/katana/storage/provider/src/test_utils.rs +++ b/crates/katana/storage/provider/src/test_utils.rs @@ -50,6 +50,7 @@ pub fn create_genesis_for_testing() -> Genesis { let class_hash = felt!("0x111"); let address = ContractAddress::from(felt!("0x1")); + // TODO: we should have a genesis builder that can do all of this for us. let class = { let json = include_str!("../test-data/simple_account.sierra.json"); let json = serde_json::from_str(json).unwrap(); @@ -67,8 +68,8 @@ pub fn create_genesis_for_testing() -> Genesis { let account = GenesisAllocation::Account(GenesisAccountAlloc::DevAccount(account)); let mut genesis = Genesis::default(); - genesis.classes.insert(class_hash, class); // insert the test class - genesis.extend_allocations([(address, account)]); // insert the test account - + // insert test account class and contract + genesis.classes.insert(class_hash, class); + genesis.extend_allocations([(address, account)]); genesis }