Skip to content

Commit b112672

Browse files
committed
refactor: remove redundant method
1 parent ecaa3ae commit b112672

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

crates/katana/core/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ reqwest.workspace = true
2828
serde.workspace = true
2929
serde_json.workspace = true
3030
starknet.workspace = true
31-
starknet-crypto.workspace = true
3231
starknet-types-core.workspace = true
3332
thiserror.workspace = true
3433
tokio.workspace = true
@@ -37,6 +36,7 @@ url.workspace = true
3736

3837
alloy-primitives = { workspace = true, features = [ "serde" ] }
3938
alloy-sol-types = { workspace = true, default-features = false, features = [ "json" ] }
39+
starknet-crypto = { workspace = true, optional = true }
4040

4141
alloy-contract = { workspace = true, default-features = false }
4242
alloy-network = { workspace = true, default-features = false }
@@ -50,4 +50,4 @@ hex.workspace = true
5050
tempfile.workspace = true
5151

5252
[features]
53-
starknet-messaging = [ ]
53+
starknet-messaging = [ "dep:starknet-crypto" ]

crates/katana/primitives/src/class.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,6 @@ impl ContractClass {
5757
}
5858
}
5959

60-
/// Checks if this contract class is a Sierra class.
61-
///
62-
/// Returns `true` if the contract class is a Sierra class, `false` otherwise.
63-
pub fn is_class(&self) -> bool {
64-
matches!(self, Self::Class(_))
65-
}
66-
6760
/// Checks if this contract class is a Cairo 0 legacy class.
6861
///
6962
/// Returns `true` if the contract class is a legacy class, `false` otherwise.

0 commit comments

Comments
 (0)