Instructions.delegate_calls()

Returns a list of all delegate call instructions.

delegate_calls() β†’ Instructions

Return type

β†’ Instructions

from glider import *

def query():
  # Fetch a lis of delegatecall instructions
  instructions = Instructions().delegate_calls().exec(1)
  
  return instructions

Output:

{
    "contract":"0xa4915dc6ee2652c471397c32ce5c8d3494ef3e6c"
    "contract_name":"Address"
    "sol_function":
        function functionDelegateCall(
                address target,
                bytes memory data,
                string memory errorMessage
            ) internal returns (bytes memory) {
                (bool success, bytes memory returndata) = target.delegatecall(data);
                return verifyCallResultFromTarget(target, success, returndata, errorMessage);
            }
"sol_instruction":
        (bool success, bytes memory returndata) = target.delegatecall(data)
}

Last updated