Trait for handling syscall results.

Signature

pub trait SyscallResultTrait

Trait functions

unwrap_syscall

Unwraps a syscall result, yielding the content of an Ok.

Panics

Panics with the syscall error message if the value is an Err.

Examples

let result = starknet::syscalls::get_execution_info_v2_syscall();
let info = result.unwrap_syscall();

Signature

fn unwrap_syscall(self: SyscallResult) -> T