Skip to content

Conversation

@sultandilaram
Copy link

Had an issue while using CPI to initialize merkle tree which is required to be mutable but wasn't specified

@ngundotra
Copy link
Collaborator

ngundotra commented May 20, 2025

Can you merge the tags? Does #[account(zero, mut)] work?

@sultandilaram
Copy link
Author

No because #[account(zero)] requires Discriminator trait to be implemented which UncheckedAccount or AccountInfo does not implement

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.

2 participants