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

lang: Fix detection of Accounts derive #1530

Merged

Conversation

tomlinton
Copy link
Contributor

The following snippet breaks the IDL parser due to the presence of Accounts in the outer doc comment which leads the IDL parser to think it is an Accounts derive.

/// Accounts in context of initialize_vault instruction
#[account]
#[derive(Default)]
pub struct VaultInfo {
    pub token_a: Pubkey,
    pub token_b: Pubkey,
    pub vault_name: [u8; 20],
}

@armaniferrante armaniferrante merged commit 61de9f2 into coral-xyz:master Mar 1, 2022
NBNARADHYA pushed a commit to MLH-Fellowship/anchor that referenced this pull request Mar 8, 2022
NBNARADHYA pushed a commit to MLH-Fellowship/anchor that referenced this pull request Mar 9, 2022
NBNARADHYA pushed a commit to MLH-Fellowship/anchor that referenced this pull request Mar 9, 2022
NBNARADHYA pushed a commit to MLH-Fellowship/anchor that referenced this pull request Mar 9, 2022
NBNARADHYA pushed a commit to MLH-Fellowship/anchor that referenced this pull request Mar 9, 2022
NBNARADHYA pushed a commit to MLH-Fellowship/anchor that referenced this pull request Mar 9, 2022
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