pub fn load_mint<'a, 'info>(
info: &'a AccountInfo<'info>,
address: Pubkey,
is_writable: bool,
) -> Result<(), ProgramError>
Expand description
Errors if:
- Owner is not SPL token program.
- Address does not match the expected mint address.
- Data is empty.
- Data cannot deserialize into a mint account.
- Expected to be writable, but is not.