Skip to content

Commit 3d71cbf

Browse files
starknet_os: change migrated class hashes from list to map of class hash → compiled class hash (#8169)
1 parent ec8049a commit 3d71cbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/starknet_os/src/io/os_input.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,10 @@ pub struct OsBlockInput {
105105
// buffer=STORED_BLOCK_HASH_BUFFER.
106106
// It is the hash that is going to be written by this OS run.
107107
pub(crate) old_block_number_and_hash: Option<(BlockNumber, BlockHash)>,
108-
// Class hashes that need migration from v1 hash to v2 hash (Poseidon → Blake).
108+
// A map from Class hashes to Compiled class hashes v2 for all classes that require migration.
109109
#[allow(dead_code)]
110110
// TODO(AvivG): remove allow(dead_code) once migration_class_hashes is used.
111-
pub(crate) class_hashes_to_migrate: Vec<ClassHash>,
111+
pub(crate) class_hashes_to_migrate: HashMap<ClassHash, CompiledClassHash>,
112112
}
113113

114114
#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))]

0 commit comments

Comments
 (0)