Signature
Trait functions
unwrap_syscall
Unwraps a syscall result, yielding the content of anOk
.
Panics
Panics with the syscall error message if the value is anErr
.
pub trait SyscallResultTrait
Ok
.
Err
.
let result = starknet::syscalls::get_execution_info_v2_syscall();
let info = result.unwrap_syscall();
fn unwrap_syscall(self: SyscallResult) -> T
Was this page helpful?