OpCode returns the current opcode in the VM. Use it in BeforeStep and AfterStep callbacks to discover the instruction being executed.
()
| 13 | // OpCode returns the current opcode in the VM. Use it in BeforeStep |
| 14 | // and AfterStep callbacks to discover the instruction being executed. |
| 15 | func (vm *VM) OpCode() byte { |
| 16 | return vm.opcode |
| 17 | } |
| 18 | |
| 19 | // StackLen returns the length of the stack of the VM's current |
| 20 | // contract. |
no outgoing calls