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

feat: Update seeds inference to allow nested user defined structs as part of the seeds #2198

Merged

Conversation

ChewingGlass
Copy link
Contributor

@ChewingGlass ChewingGlass commented Sep 23, 2022

Something like this would cause an error in PDA derivation in typescript:


#[derive(Accounts)]
#[instruction(args: Args)
pub struct Something<'info> {
  #[account(
      seeds = [b"hey", args.key.as_ref()],
      bump
   )]
  pub account: AccountInfo<'info>
}

@vercel
Copy link

vercel bot commented Sep 23, 2022

@ChewingGlass is attempting to deploy a commit to the coral-xyz Team on Vercel.

A member of the Team first needs to authorize it.

@armaniferrante armaniferrante merged commit 6f3877f into coral-xyz:master Sep 24, 2022
Henry-E pushed a commit to Henry-E/anchor that referenced this pull request Dec 6, 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