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