Skip to main content

validate_buffer_pda

Function validate_buffer_pda 

Source
pub fn validate_buffer_pda(
    program_id: &Address,
    buffer: &Address,
    mint: &[u8; 32],
    bump: u8,
) -> Result<(), ProgramError>
Expand description

Confirm buffer matches the derived buffer PDA for the mint bytes mint and bump.