Skip to main content

delegate_call_slice

Function delegate_call_slice 

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

Call a contract, writing its returndata to the slice given. Returns true for if the contract ran without issue, or false if a revert happened, and the slice isn’t read to if a revert happens.