Function.caller_functions()

Returns a Functions object that represents functions that call the function.

caller_functions() → Functions

The caller functions are the functions that directly call the specified function.

Example

from glider import *

def query():
  # Retrieve a function with name _afterTokenTransfer
  functions = Functions().with_name('_afterTokenTransfer').exec(1)

  # Return its caller functions
  return functions[0].caller_functions().exec()

Output

Last updated