soroban_sdk

Macro assert_in_contract

Source
macro_rules! assert_in_contract {
    ($env:expr $(,)?) => { ... };
}
Expand description

Assert in contract asserts that the contract is currently executing within a contract. The macro maps to code when testutils are enabled or in tests, otherwise maps to nothing.