Call.get_function()
Returns the function that is being called, if exists, otherwise returns NoneObject
require(balanceOf(to) + amount <= _maxWalletSize, "Exceeds the limit")Query Example
from glider import *
def query():
instructions = (
Instructions()
.calls()
.exec(10, 80)
.filter(lambda instruction : instruction.get_parent().name in "slippedDailyRate")
)
results = []
for instruction in instructions:
for call in instruction.get_components():
if isinstance(call, Call):
if not isinstance(call.get_function(), NoneObject):
print(call.expression)
print(instruction.get_parent().get_contract().address())
results.append(call.get_function())
break
else:
print('no function object: ' + call.signature)
break
return resultsExample Output

The function was called from the slippedDailyRate() function:
slippedDailyRate() function:
Last updated