Skip to main content

require_mint_freeze_authority

Function require_mint_freeze_authority 

Source
pub fn require_mint_freeze_authority(
    mint_account: &AccountView,
    expected_freeze: &Address,
) -> ProgramResult
Expand description

Verify an SPL Mint account’s freeze_authority COption field matches expected_freeze.

Same shape as require_mint_authority but reads the second COption (bytes 46..50 for tag, 50..82 for pubkey). Exposed so the macro surface can support a future mint::freeze_authority = X constraint without another runtime change.