Skip to content

Commit e7bb1ee

Browse files
starknet_api: impl has_partial_block_hash_components for StarknetVersion (#10528)
1 parent 519906c commit e7bb1ee

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/starknet_api/src/block.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ macro_rules! starknet_version_enum {
6363

6464
impl StarknetVersion {
6565
pub const LATEST: Self = Self::$latest;
66+
67+
pub fn has_partial_block_hash_components(&self) -> bool {
68+
self >= &Self::V0_13_2
69+
}
6670
}
6771

6872
impl From<&StarknetVersion> for Vec<u8> {

0 commit comments

Comments
 (0)