Skip to content

Commit

Permalink
fix(starknet_class_manager): class dir. name is full class hash (#4653)
Browse files Browse the repository at this point in the history
Including the first byte.
  • Loading branch information
elintul authored Mar 4, 2025
1 parent c8ee9d7 commit 1774cd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/starknet_class_manager/src/class_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,8 @@ impl FsClassStorage {
/// └── b2c3.../
fn get_class_dir(&self, class_id: ClassId) -> PathBuf {
let class_id = hex::encode(class_id.to_bytes_be());
let (first_msb_byte, rest_of_bytes) = class_id.split_at(2);
PathBuf::from(first_msb_byte).join(rest_of_bytes)
let (first_msb_byte, _rest_of_bytes) = class_id.split_at(2);
PathBuf::from(first_msb_byte).join(class_id)
}

fn get_persistent_dir(&self, class_id: ClassId) -> PathBuf {
Expand Down

0 comments on commit 1774cd2

Please sign in to comment.