ExternalPoint.get_parent()
Returns parent function/modifier of the ExternalPoint.
Query Example
from glider import *
def query():
functions = (
Functions()
.with_name("transferFrom")
.exec(1)
)
arguments = functions[0].arguments()
print(arguments.with_type("address")[0].get_parent())
print(arguments.with_type("address")[0].get_variable().source_code())
return functions
Example Output

Last updated