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

Method Set

vm/neovm/value_stack.go:86–93  ·  view source on GitHub ↗
(index int, t types.VmValue)

Source from the content-addressed store, hash-verified

84}
85
86func (self *ValueStack) Set(index int, t types.VmValue) error {
87 l := len(self.data)
88 if index >= l || index < 0 {
89 return errors.ERR_INDEX_OUT_OF_BOUND
90 }
91 self.data[index] = t
92 return nil
93}
94
95func (self *ValueStack) Push(t types.VmValue) error {
96 if int64(len(self.data)) >= self.limit {

Callers 7

HandleFunction · 0.45
writeMethod · 0.45
accountImportFunction · 0.45
HandlerMethod · 0.45
ExecuteOpMethod · 0.45
BigIntOpFunction · 0.45
BigIntZipFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected