SyscallResultTrait

Trait for handling syscall results.

Fully qualified path: core::starknet::SyscallResultTrait

pub trait SyscallResultTrait<T>

Trait functions

unwrap_syscall

Unwraps a syscall result, yielding the content of an Ok. # PanicsPanics 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();

Fully qualified path: core::starknet::SyscallResultTrait::unwrap_syscall

fn unwrap_syscall(self: SyscallResult<T>) -> T