MCPcopy Create free account
hub / github.com/DNAProject/DNA / PopAsStruct

Method PopAsStruct

vm/neovm/value_stack_conversion.go:101–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99}
100
101func (self *ValueStack) PopAsStruct() (*types.StructValue, error) {
102 val, err := self.Pop()
103 if err != nil {
104 return nil, err
105 }
106 return val.AsStructValue()
107}
108
109func (self *ValueStack) PushAsInteropValue(val interfaces.Interop) error {
110 return self.Push(types.VmValueFromInteropValue(types.NewInteropValue(val)))

Callers

nothing calls this directly

Calls 2

PopMethod · 0.95
AsStructValueMethod · 0.80

Tested by

no test coverage detected