Call.get_call_gas()
Returns Value representing the gas-parameter used in the external calls.
get_call_gas() ->
APIList
[Union[
Value
,
NoneObject
]]
Query Example
from glider import *
def query():
instructions = (
Instructions()
.low_level_external_calls()
.exec(1000)
.filter(lambda instruction : instruction.get_parent().get_contract().name == "PoolEth")
)
for ins in instructions:
callee_values = ins.get_value().get_callee_values()
print(callee_values.get_call_gas())
print(callee_values.get_call_gas().expression)
return instructions
Example Output

Last updated