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

Method StackLen

protocol/txvm/introspection.go:21–23  ·  view source on GitHub ↗

StackLen returns the length of the stack of the VM's current contract.

()

Source from the content-addressed store, hash-verified

19// StackLen returns the length of the stack of the VM's current
20// contract.
21func (vm *VM) StackLen() int {
22 return len(vm.contract.stack)
23}
24
25// StackItem returns an "inspected" copy of an item on the VM's
26// current contract stack, by position. Position 0 is the bottom of

Callers 3

TestIntrospectionFunction · 0.95
TestOptionsFunction · 0.80
stackHookMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestIntrospectionFunction · 0.76
TestOptionsFunction · 0.64