Skip to main content

static_call_slice_opt

Function static_call_slice_opt 

Source
pub fn static_call_slice_opt<const DATA_CAP: usize>(
    contract: [u8; 20],
    calldata: &[u8],
    gas: u64,
    offset: usize,
) -> Option<(usize, [u8; DATA_CAP])>
Expand description

Same as the other slice function, though returning Option if error.