From ae6f20e009961cddf246512de01efa275b5d424d Mon Sep 17 00:00:00 2001 From: Ammar Arif Date: Tue, 14 May 2024 11:51:01 -0400 Subject: [PATCH] fix feature --- crates/katana/storage/provider/Cargo.toml | 4 +++- crates/katana/storage/provider/src/test_utils.rs | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/katana/storage/provider/Cargo.toml b/crates/katana/storage/provider/Cargo.toml index 4b7a4ea997..bfdeda9fff 100644 --- a/crates/katana/storage/provider/Cargo.toml +++ b/crates/katana/storage/provider/Cargo.toml @@ -21,11 +21,13 @@ futures = { workspace = true, optional = true } starknet = { workspace = true, optional = true } tokio = { workspace = true, optional = true } +serde_json = { workspace = true, optional = true } + [features] default = [ "fork", "in-memory" ] fork = [ "dep:futures", "dep:starknet", "dep:tokio", "in-memory" ] in-memory = [ ] -test-utils = [ ] +test-utils = [ "dep:serde_json" ] [dev-dependencies] katana-core.workspace = true diff --git a/crates/katana/storage/provider/src/test_utils.rs b/crates/katana/storage/provider/src/test_utils.rs index 546444eccd..c609784799 100644 --- a/crates/katana/storage/provider/src/test_utils.rs +++ b/crates/katana/storage/provider/src/test_utils.rs @@ -6,6 +6,7 @@ use crate::{providers::in_memory::InMemoryProvider, traits::block::BlockWriter}; use katana_db::mdbx::{test_utils, DbEnvKind}; use katana_primitives::block::{BlockHash, FinalityStatus}; use katana_primitives::class::CompiledClass; +use katana_primitives::contract::ContractAddress; use katana_primitives::genesis::allocation::{ DevGenesisAccount, GenesisAccountAlloc, GenesisAllocation, };