MCPcopy Create free account
hub / github.com/chain/Core / opRot

Function opRot

protocol/vm/stack.go:253–263  ·  view source on GitHub ↗
(vm *virtualMachine)

Source from the content-addressed store, hash-verified

251}
252
253func opRot(vm *virtualMachine) error {
254 err := vm.applyCost(2)
255 if err != nil {
256 return err
257 }
258 err = rot(vm, 3)
259 if err != nil {
260 return err
261 }
262 return nil
263}
264
265func rot(vm *virtualMachine, n int64) error {
266 if n < 1 {

Callers

nothing calls this directly

Calls 2

rotFunction · 0.85
applyCostMethod · 0.80

Tested by

no test coverage detected