Skip to main content

call_slice_res

Function call_slice_res 

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

Same as the other slice function, returning Result depending on return or revert.