mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-03 23:02:27 +00:00
VM: Add stackItems; Array, Boolean, Int and ByteArray
This commit is contained in:
parent
e29b85d0d7
commit
d8d27761ae
4 changed files with 77 additions and 0 deletions
13
pkg/vm/stack/array.go
Normal file
13
pkg/vm/stack/array.go
Normal file
|
@ -0,0 +1,13 @@
|
|||
package stack
|
||||
|
||||
// Array represents an Array of stackItems on the stack
|
||||
type Array struct {
|
||||
*abstractItem
|
||||
val []Item
|
||||
}
|
||||
|
||||
// Array overrides the default implementation
|
||||
// by the abstractItem, returning an Array struct
|
||||
func (a *Array) Array() (*Array, error) {
|
||||
return a, nil
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue