Instructions.throw_instructions()

Returns an Instructions object for the 'throw' instructions

throw_instructions() β†’ Instructions

Query Example

from glider import *

def query():
  instructions = Instructions().throw_instructions().exec(1)

  return instructions

Output Example

{
    "contract":"0x6c4c4759659d644cb36df4842a7f113321e3f7bb"
    "contract_name":"SafeMath"
    "sol_function":
        function assert(bool assertion) internal {
            if (!assertion) throw;
        }
    "sol_instruction":
        throw
}

Last updated