templar_common

Function panic_with_message

Source
pub fn panic_with_message(msg: &str) -> !
Expand description

Panic helper that works in both WASM and native contexts.

In WASM contexts (contract compilation), uses near_sdk::env::panic_str. In native contexts (bots, tests), uses standard panic!.