macro_rules! unwrap_bump {
    ($ctx:expr, $bump:literal $(,)?) => { ... };
}
Expand description

Unwraps a bump seed.

Example

fn my_instruction(ctx: Context<MyAccounts>) -> Result<()> {
    let my_data = &mut ctx.accounts.my_data
    my_data.bump = unwrap_bump!(ctx, "my_data");
    Ok(())
}