Instructions.low_level_function_calls()

Returns a list of the functions calls instructions

low_level_function_calls() β†’ Instructions

Query Example

from glider import *

def query():
  instructions = Instructions().low_level_function_calls().exec(1)

  return instructions

Output Example

{
    "contract": "0xa4915dc6ee2652c471397c32ce5c8d3494ef3e6c"
    "contract_name": "Address"
    "sol_function":
        function sendValue(address payable recipient, uint256 amount) internal {
            require(address(this).balance >= amount, "Address: insufficient balance");
    
            (bool success, ) = recipient.call{value: amount}("");
            require(success, "Address: unable to send value, recipient may have reverted");
        }
    "sol_instruction":
        (bool success, ) = recipient.call{value: amount}("")
}

Note

TBD: rename to low_level_external_calls()

Last updated