Skip to main content

hopper_check

Macro hopper_check 

Source
macro_rules! hopper_check {
    ($account:expr, $( $constraint:tt )+) => { ... };
}
Expand description

Composable account constraint checking.

hopper_check!(vault,
    owner = program_id,
    writable,
    signer,
    disc = Vault::DISC,
    size >= Vault::LEN,
);