multiversx_sc_scenario::debug_executor

Function contract_instance_wrapped_execution

Source
pub fn contract_instance_wrapped_execution<F>(panic_message: bool, f: F)
where F: FnOnce() -> Result<(), TxPanic>,
Expand description

Prepares the StaticVarStack and catches panics. The result of the panics is written to the top of the TxContext stack.