Instruction.source_code()

Returns the source code of the instruction

Query

from glider import *
def query():
  #fetch a list of instructions
  instructions = Instructions().exec(1) 
  #print the source code of the instruction
  print(instructions[0].source_code())
  return []

Output

{
  "print_output": [
    "{\n        return msg.sender;\n    }"
  ]
}

Last updated