Skip to content

Commit

Permalink
refactor: remove redundant method
Browse files Browse the repository at this point in the history
  • Loading branch information
kariy committed Jan 10, 2025
1 parent ecaa3ae commit b112672
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
4 changes: 2 additions & 2 deletions crates/katana/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }
Expand All @@ -50,4 +50,4 @@ hex.workspace = true
tempfile.workspace = true

[features]
starknet-messaging = [ ]
starknet-messaging = [ "dep:starknet-crypto" ]
7 changes: 0 additions & 7 deletions crates/katana/primitives/src/class.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b112672

Please sign in to comment.