Skip to main content

safe_static_call_bool

Function safe_static_call_bool 

Source
pub fn safe_static_call_bool(
    contract: [u8; 20],
    calldata: &[u8],
    gas: u64,
) -> bool
Expand description

Check the codesize before invoking call, only reading a single byte at the location for a bool check. If the contract doesn’t return anything, then we assume everything went okay. If it does, then we check for true. We don’t return anything.