diff --git a/crates/katana/core/Cargo.toml b/crates/katana/core/Cargo.toml index 66231271f1..9f1f8ecd58 100644 --- a/crates/katana/core/Cargo.toml +++ b/crates/katana/core/Cargo.toml @@ -28,7 +28,6 @@ reqwest.workspace = true serde.workspace = true serde_json.workspace = true starknet.workspace = true -starknet-crypto.workspace = true starknet-types-core.workspace = true thiserror.workspace = true tokio.workspace = true @@ -37,6 +36,7 @@ url.workspace = true alloy-primitives = { workspace = true, features = [ "serde" ] } alloy-sol-types = { workspace = true, default-features = false, features = [ "json" ] } +starknet-crypto = { workspace = true, optional = true } alloy-contract = { workspace = true, default-features = false } alloy-network = { workspace = true, default-features = false } @@ -50,4 +50,4 @@ hex.workspace = true tempfile.workspace = true [features] -starknet-messaging = [ ] +starknet-messaging = [ "dep:starknet-crypto" ] diff --git a/crates/katana/primitives/src/class.rs b/crates/katana/primitives/src/class.rs index 7b8dbb6b90..e227e12c08 100644 --- a/crates/katana/primitives/src/class.rs +++ b/crates/katana/primitives/src/class.rs @@ -57,13 +57,6 @@ impl ContractClass { } } - /// Checks if this contract class is a Sierra class. - /// - /// Returns `true` if the contract class is a Sierra class, `false` otherwise. - pub fn is_class(&self) -> bool { - matches!(self, Self::Class(_)) - } - /// Checks if this contract class is a Cairo 0 legacy class. /// /// Returns `true` if the contract class is a legacy class, `false` otherwise.