macro_rules! require_msg_typed {
    ($invariant:expr, $code:expr, $($arg:tt)*) => { ... };
}
Expand description

Like anchor’s require!(), but with a customizable message and type

Example: require_msg_typed!(condition, “the condition on account {} was violated”, account_key);