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

Method pop

protocol/txvm/vm.go:203–209  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

201}
202
203func (vm *VM) pop() Item {
204 res, ok := vm.contract.stack.pop()
205 if !ok {
206 panic(errors.Wrap(ErrUnderflow, "popping stack item"))
207 }
208 return res
209}
210
211func (vm *VM) popData() Data {
212 v, ok := vm.pop().(Data)

Callers 9

popValueMethod · 0.95
popDataMethod · 0.95
popBytesMethod · 0.95
popIntMethod · 0.95
popTupleMethod · 0.95
opCallFunction · 0.45
opGetFunction · 0.45
opPutFunction · 0.45
opDropFunction · 0.45

Calls 1

WrapFunction · 0.92

Tested by

no test coverage detected