Instruction.callee_names()

Returns the list of function names that are called from the instruction. It returns an empty list for an instruction that does not call any functions

callee_names() → List[str]

For example, for the instruction:

require(!_exists(tokenId), "ERC721: token already minted");

The functions will return ['_exists', 'require']

Query Example

from glider import *
def query():
  #fetch an instruction
  instruction = Instructions().with_callee_function_name('require').exec(1,30)
  #print the list of function names called from the instruction
  print(instruction[0].callee_names()) 
  return instruction

Output

Last updated