Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
82
func
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
91
func
opBury(vm *VM) {
92
n := int64(vm.popInt())
Callers
nothing calls this directly
Calls
3
popInt
Method · 0.80
roll
Method · 0.80
charge
Method · 0.80
Tested by
no test coverage detected