Call.get_call_type()
Returns the type of the call
get_call_type() →
CallType
The Call represents all types of call values: external, internal, log emit, etc. This function can be used to get the type of the call.
Query Example
from glider import *
def query():
instructions = (
Instructions()
.exec(100)
.filter(lambda x: x.is_call())
)
for ins in instructions:
call = ins.get_value()
if isinstance(call, Call):
print(call.get_call_type())
return instructions
Output

Last updated