CallGraph.with_names()
Returns the list of call nodes whose corresponding function has the specified name.
with_names(names: List[str],sensitivity: bool = True) → APIList[CallNode]
Query Example
from glider import *
def query():
# Fetch the first contract
contracts = Contracts().exec(1)
# Get call nodes of functions ending with "Sender"
call_nodes = contracts[0].call_graph().with_names(["_msgSender", "_msgData"])
for node in call_nodes:
print(node.callable_name())
return contractsExample Output

Last updated