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

Function opRoll

protocol/txvm/stack.go:82–89  ·  view source on GitHub ↗
(vm *VM)

Source from the content-addressed store, hash-verified

80}
81
82func opRoll(vm *VM) {
83 n := int64(vm.popInt())
84 err := vm.contract.stack.roll(n)
85 if err != nil {
86 panic(err)
87 }
88 vm.charge(n)
89}
90
91func opBury(vm *VM) {
92 n := int64(vm.popInt())

Callers

nothing calls this directly

Calls 3

popIntMethod · 0.80
rollMethod · 0.80
chargeMethod · 0.80

Tested by

no test coverage detected