Skip to content

Commit

Permalink
feat(starknet_os): add 'del memory' hint post-v0.13.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dorimedini-starkware committed Feb 11, 2025
1 parent bd23aca commit 4fa94b3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/starknet_os/src/hints/enum_definition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ use crate::hints::hint_implementation::builtins::{
use crate::hints::hint_implementation::compiled_class::{
assert_end_of_bytecode_segments,
assign_bytecode_segments,
delete_memory_data,
iter_current_segment_info,
set_ap_to_segment_hash,
};
Expand Down Expand Up @@ -456,6 +457,7 @@ define_hint_enum!(
assert next(bytecode_segments, None) is None"#
}
),
(DeleteMemoryData, delete_memory_data, "del memory.data[ids.data_ptr]"),
(
IterCurrentSegmentInfo,
iter_current_segment_info,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ pub fn assert_end_of_bytecode_segments(
todo!()
}

pub fn delete_memory_data(HintArgs { .. }: HintArgs<'_, '_, '_, '_, '_>) -> HintResult {
// TODO(Yoni): Assert that the address was not accessed before.
todo!()
}

pub fn iter_current_segment_info(HintArgs { .. }: HintArgs<'_, '_, '_, '_, '_>) -> HintResult {
todo!()
}
Expand Down

0 comments on commit 4fa94b3

Please sign in to comment.