Skip to main content

safe_delegate_call_slice

Function safe_delegate_call_slice 

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

Same as the slice variant, except check the length of the code for the address first. If code doesn’t exist, then we return None.