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

Commit

Permalink
add changes of inner call info to the syscall handler storage state (#…
Browse files Browse the repository at this point in the history
…925)

* add changes of inner callInfo to the syscall handler storage state

* fmt
  • Loading branch information
juanbono authored Aug 17, 2023
1 parent 04b93fc commit 08c212b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 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,14 @@ 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

0 comments on commit 08c212b

Please # to comment.