Instructions.callables_recursive()
Returns a set of Callables objects for the callables where the instructions can be executed in.
callables_recursive() → APISet[Callables]
Consider the following Solidity code:
modifier onlyOwner() {
require(_owner == _msgSender(),"Ownable: caller is not the owner");
_;
}
function includeInFee(address account) public onlyOwner {
_isExcludedFromFee[account] = false;
}For the following instruction:
_isExcludedFromFee[account] = false;Both the includeInFee function and onlyOwner modifier can call the instruction above.
With callables_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()
.callables_recursive()
.exec()
.name
)
return functionsExample Output

Last updated