CallGraph.with_name_suffix()
Returns the list of call nodes whose corresponding function name has the specified suffix.
with_name_suffix(
suffix: 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_name_suffix("Sender")
for node in call_nodes:
print(node.callable_name())
return []
Output Example
{
"print_output": [
"_msgSender"
]
}
Last updated