fix: replace funk reference in syscall handler with sysvar cache look… #5526
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Refactored the
get_sysvar
syscall handler to use the sysvar cache instead of direct funk access, ensuring SVM remains pure and decoupled from storage/database APIs.Scope
fd_vm_syscall_runtime.c
,fd_bank_abi.c
Reason
Fixes a rare layering violation (see #5030), keeping SVM logic isolated from db/storage code.
Testing
get_sysvar
calls use the cache