MCPcopy Create free account
hub / github.com/chain/txvm / OpCode

Method OpCode

protocol/txvm/introspection.go:15–17  ·  view source on GitHub ↗

OpCode returns the current opcode in the VM. Use it in BeforeStep and AfterStep callbacks to discover the instruction being executed.

()

Source from the content-addressed store, hash-verified

13// OpCode returns the current opcode in the VM. Use it in BeforeStep
14// and AfterStep callbacks to discover the instruction being executed.
15func (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.

Callers 2

TestIntrospectionFunction · 0.95
stackHookMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestIntrospectionFunction · 0.76