Skip to content

Commit a30e5c8

Browse files
authored
fix: make MemorySegmentManager.finalize() public (#1771)
* fix: make MemorySegmentsManager.finalize() public This method is used in some of the bootloader hints. * changelog
1 parent f4a2214 commit a30e5c8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
#### Upcoming Changes
44

5+
* fix: make MemorySegmentManager.finalize() public [#1771](https://github.com/lambdaclass/cairo-vm/pull/1771)
6+
57
* feat(BREAKING): Serialize `Array<Felt252>` return value into output segment in cairo1-run crate:
68
* Checks that only `PanicResult<Array<Felt252>>` or `Array<Felt252>` can be returned by the program when running with either `--proof_mode` or `--append_return_values`.
79
* Serializes return values into the output segment under the previous conditions following the format:

vm/src/vm/vm_memory/memory_segments.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ impl MemorySegmentManager {
270270
// * size - The size of the segment (to be used in relocate_segments).
271271
// * public_memory - A list of offsets for memory cells that will be considered as public
272272
// memory.
273-
pub(crate) fn finalize(
273+
pub fn finalize(
274274
&mut self,
275275
size: Option<usize>,
276276
segment_index: usize,

0 commit comments

Comments
 (0)