Macro vipers::assert_owner
source · [−]macro_rules! assert_owner {
($program_account: expr, $owner: expr $(,)?) => { ... };
($program_account: expr, $owner: ident $(,)?) => { ... };
($program_account: expr, $owner: ident, $msg: expr $(,)?) => { ... };
($program_account: expr, $owner: expr, $msg: expr $(,)?) => { ... };
}
👎 Deprecated since 1.5.6:
As of Anchor 0.15, Anchor handles this for you automatically.
Expand description
Asserts that an account is owned by the given program.
As of Anchor 0.15, Anchor handles this for you automatically. You should not need to use this.