CallGraph.with_name()
Returns a list of call nodes whose corresponding function has the specified name.
with_name(
name: 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 whose name is "_msgSender"
call_nodes = contracts[0].call_graph().with_name("_msgSender")
for node in call_nodes:
print(node.callable_name())
return []
Example Output
{
"print_output": [
"_msgSender"
]
}
Last updated