Macro vipers::assert_keys_neq
source · [−]macro_rules! assert_keys_neq {
($account_a: expr, $account_b: expr $(,)?) => { ... };
($account_a: expr, $account_b: expr, $err_code: ident $(,)?) => { ... };
($account_a: expr, $account_b: expr, $msg: literal $(,)?) => { ... };
($account_a: expr, $account_b: expr, $err: expr $(,)?) => { ... };
($account_a: expr, $account_b: expr, $err: expr, $msg: expr $(,)?) => { ... };
}
Expand description
Asserts that two accounts do not share the same key.
Example
ⓘ
let one = Pubkey::default();
let two = Pubkey::default();
assert_keys_neq!(one, two); // throws an error