Adds a filter to get callables that have all of the specified callees (functions that are being called within a function/modifier). Returns a filtered Callables child object.
from glider import*defquery():# Retrieve all the modifiers with the signature `nonReentrant()` functions =Functions().with_callee_names(["owner", "msgSender"]).exec(1)# Return the first five modifiersreturn functions
from glider import*defquery():# Retrieve all the modifiers with the signature `nonReentrant()` modifiers =Modifiers().with_callee_names(["owner", "msgSender"]).exec(1)# Return the first five modifiersreturn modifiers
Output
"root":{3 items"contract":string"0x5e6b2027f794a069bfa5e80195e22544d40ae600""contract_name":string"Ownable""sol_modifier":soliditymodifieronlyOwner() {require(owner() ==_msgSender(),"Ownable: caller is not the owner"); _; }