Skip to content

Commit bb1a2e8

Browse files
starknet_os_runner: disable migration in virtual block execution
1 parent c0feab1 commit bb1a2e8

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

crates/starknet_os_runner/src/virtual_block_executor.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,16 @@ impl TryFrom<(BlockHeader, ChainId)> for BaseBlockInfo {
6868
))
6969
})?;
7070
let chain_info = get_chain_info(&chain_id);
71-
let versioned_constants =
71+
let mut versioned_constants =
7272
VersionedConstants::get(&block_info.starknet_version).map_err(|e| {
7373
VirtualBlockExecutorError::TransactionExecutionError(format!(
74-
"Failed to get versioned constants: {e}"
75-
))
76-
})?;
74+
"Failed to get versioned constants: {e}"
75+
))
76+
})?
77+
.clone();
78+
// Disable casm hash migration for virtual block execution.
79+
versioned_constants.enable_casm_hash_migration = false;
80+
7781
let block_context = BlockContext::new(
7882
block_info,
7983
chain_info,

0 commit comments

Comments
 (0)