Category "solana-program-library"

the trait `anchor_lang::AccountDeserialize` is not implemented for `anchor_spl::token::Mint`

I am trying to CPI the Token Program to send spl-tokens to a wallet. For this the derive accounts in the context struct has three accounts without any attribute

How to add a Pubkey to an account containing a vector of Pubkeys in an anchor program

use anchor_lang::prelude::*; use rand::Rng; use solana_program::{declare_id, pubkey::Pubkey}; declare_id!("Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS"); #[pr