Skip to content

fix: validate SVM optional parameter presence#1449

Draft
Reinis-FRP wants to merge 3 commits into
masterfrom
reinis-frp/consistent-optionals
Draft

fix: validate SVM optional parameter presence#1449
Reinis-FRP wants to merge 3 commits into
masterfrom
reinis-frp/consistent-optionals

Conversation

@Reinis-FRP

@Reinis-FRP Reinis-FRP commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds consistency validation for SVM instructions that can load optional parameters either from instruction data or from the instruction_params account.

The validation requires each optional argument group to be consistently present or absent, and requires that presence to be opposite the instruction_params account presence. This prevents callers from supplying conflicting values through both input paths.

This fix has been reviewed by auditors and has already been deployed onchain.

Signed-off-by: Reinis Martinsons <reinis@umaproject.org>
@Reinis-FRP Reinis-FRP force-pushed the reinis-frp/consistent-optionals branch from 9fd883e to 9b62bf2 Compare June 2, 2026 13:09
Signed-off-by: Reinis Martinsons <reinis@umaproject.org>
Signed-off-by: Reinis Martinsons <reinis@umaproject.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant