Skip to main content

derive_ata_const

Macro derive_ata_const 

Source
macro_rules! derive_ata_const {
    ($wallet:expr, $mint:expr, $bump:expr) => { ... };
}
Expand description

Derive an ATA address at compile time. Requires known bump.

const MY_ATA: Address = derive_ata_const!(
    WALLET_BYTES,
    MINT_BYTES,
    BUMP,
);