Skip to main content

call_slice_opt

Function call_slice_opt 

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

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