Skip to content

Commit

Permalink
Update programs/protocol-contracts-solana/src/lib.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Lucas Bertrand <[email protected]>
  • Loading branch information
brewmaster012 and lumtis authored Oct 11, 2024
1 parent 7d981a9 commit de120db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions programs/protocol-contracts-solana/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ pub mod gateway {

let token = &ctx.accounts.token_program;
let signer_seeds: &[&[&[u8]]] = &[&[b"meta", &[ctx.bumps.pda]]];

// make sure that ctx.accounts.recipient_ata is ATA (PDA account of token program)
let recipient_ata = get_associated_token_address(
&ctx.accounts.recipient.key(),
Expand Down

0 comments on commit de120db

Please sign in to comment.