From 2fd0e5cfcb893ae5ed59506e65d5a5400f2bc0e2 Mon Sep 17 00:00:00 2001 From: Olivier Desenfans Date: Wed, 22 May 2024 15:54:24 +0200 Subject: [PATCH 1/2] fix: make MemorySegmentsManager.finalize() public This method is used in some of the bootloader hints. --- vm/src/vm/vm_memory/memory_segments.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/src/vm/vm_memory/memory_segments.rs b/vm/src/vm/vm_memory/memory_segments.rs index 7713bad23c..c68503c112 100644 --- a/vm/src/vm/vm_memory/memory_segments.rs +++ b/vm/src/vm/vm_memory/memory_segments.rs @@ -270,7 +270,7 @@ impl MemorySegmentManager { // * size - The size of the segment (to be used in relocate_segments). // * public_memory - A list of offsets for memory cells that will be considered as public // memory. - pub(crate) fn finalize( + pub fn finalize( &mut self, size: Option, segment_index: usize, From 5e8b9d4a2aacbdd284ff3a9dea6bb6e6d669ee1e Mon Sep 17 00:00:00 2001 From: Olivier Desenfans Date: Thu, 23 May 2024 11:11:40 +0200 Subject: [PATCH 2/2] changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ae01a73480..fdbe1a5d6f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ #### Upcoming Changes +* fix: make MemorySegmentManager.finalize() public [#1771](https://github.com/lambdaclass/cairo-vm/pull/1771) + * feat(BREAKING): Serialize `Array` return value into output segment in cairo1-run crate: * Checks that only `PanicResult>` or `Array` can be returned by the program when running with either `--proof_mode` or `--append_return_values`. * Serializes return values into the output segment under the previous conditions following the format: