Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

add changes of inner call info to the syscall handler storage state #925

Merged
merged 4 commits into from
Aug 17, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/syscalls/business_logic_syscall_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,10 @@ impl<'a, S: StateReader> BusinessLogicSyscallHandler<'a, S> {
}))
};

// update syscall handler information
self.starknet_storage_state.read_values.extend(call_info.storage_read_values.clone());
self.starknet_storage_state.accessed_keys.extend(call_info.accessed_storage_keys.clone());

self.internal_calls.push(call_info);

Ok(SyscallResponse { gas, body })
Expand Down
Loading