from glider import*defquery(): functions =Functions().exec(100) results = []for function in functions:for call in function.callee_values():# Return the expression (code) of each call in each function results.append({"function": function.name(), "call": call.expression})return results
Example output
[ {"function":"transferOwnership","call":"require(bool,string)(newOwner != address(0),\"Ownable: new owner is the zero address\")" }, {"function":"transferOwnership","call":"_setOwner(newOwner)" }, ...]