We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
related to, but not identical to, issue #2441, running anchor build on following program
anchor build
use anchor_lang::prelude::*; declare_id!("Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS"); #[program] pub mod bug { use super::*; pub fn initialize(ctx: Context<Initialize>) -> Result<()> { ctx.accounts.something.first = 0; Ok(()) } } #[derive(Accounts)] pub struct Initialize<'info> { #[account( seeds = [&something.first.to_le_bytes()], bump )] pub something: Account<'info, Something>, } #[account] pub struct Something { pub first: u64, } mod other { use anchor_lang::prelude::*; #[derive(AnchorDeserialize, AnchorSerialize)] pub struct Something { pub second: u64, } }
results in
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', lang/syn/src/idl/pda.rs:336:22`
Tested with 0.26.0 and 0.27.0.
0.26.0
0.27.0
The text was updated successfully, but these errors were encountered:
you have to turn on the seeds feature first of course
Sorry, something went wrong.
Fixed in #2824.
No branches or pull requests
Hi,
related to, but not identical to, issue #2441, running
anchor build
on following programresults in
Tested with
0.26.0
and0.27.0
.The text was updated successfully, but these errors were encountered: