pub fn require_mint_decimals(
mint_account: &AccountView,
expected: u8,
) -> ProgramResultExpand description
Verify an SPL Mint account’s decimals byte matches expected.
Reads byte 44 of the Mint layout. Pairs with require_mint_authority
to express the full #[account(mint::authority = X, mint::decimals = N)]
Anchor-compat syntax with zero additional crate dependencies.