Argument.memory_type
Returns the memory type of the argument.
property
memory_type
: str
def query():
functions = Functions().exec(100)
function_with_args = []
for f in functions:
# Prepare the object for this function
function = {"Function Name": f.name(), "Arguments": []}
# For each of its arguments...
for arg in f.arguments().list():
# ...return the data of the argument
function["Arguments"].append({"Argument memory type": arg.memory_type})
function_with_args.append(function)
return function_with_args
Output:
{
"Function Name": "transferOwnership",
"Arguments": [
{
"Argument memory type": "memory"
}
]
}
Last updated