Instructions.functions_recursive()

Returns Functions object for the functions where the instructions can be executed in.

functions_recursive() → Functions

Consider the following Solidity code:

function includeInFee(address account) public onlyOwner {
        _isExcludedFromFee[account] = false;
}

For the following instruction:

_isExcludedFromFee[account] = false;

The includeInFee function can call the instruction above.

With functions_recursive(), one can retrieve the functions that are called recursively through the entire call chain.

Query Example

from glider import *

def query():
    # Fetch a function
    functions = (
        Functions()
        .with_name("includeInFee")
        .exec(1)
    )

    print(
        functions
        .instructions()
        .functions_recursive()
        .exec()
        .name
    )

    return functions

Example Output

Last updated