Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(system): fix system return statement in inner blocks #117

Merged
merged 2 commits into from
Dec 16, 2024

Conversation

notdanilo
Copy link
Contributor

Status Type ⚠️ Core Change Issue
Ready Hotfix No None

Problem

We cannot write return Ok(ctx.accounts) in inner blocks of the execute function.

Solution

Fix the #[system] proc-macro to recursively look for return Ok(ctx.accounts) and transform them to return ctx.accounts.try_to_vec().

@notdanilo notdanilo merged commit 0bca0f4 into main Dec 16, 2024
5 checks passed
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