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

Method peekValue

protocol/txvm/values.go:52–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50}
51
52func (vm *VM) peekValue() *value {
53 item := vm.peek()
54 v, ok := item.(*value)
55 if !ok {
56 panic(errors.WithData(ErrType, "want", "Value", "got", fmt.Sprintf("%T", item)))
57 }
58 return v
59}
60
61func opAmount(vm *VM) {
62 val := vm.peekValue()

Callers 3

opAnchorFunction · 0.80
opAmountFunction · 0.80
opAssetIDFunction · 0.80

Calls 2

peekMethod · 0.95
WithDataFunction · 0.92

Tested by

no test coverage detected