mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-04 09:02:28 +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
12
pkg/vm/stack/bytearray.go
Normal file
12
pkg/vm/stack/bytearray.go
Normal file
|
@ -0,0 +1,12 @@
|
|||
package stack
|
||||
|
||||
// ByteArray represents a slice of bytes on the stack
|
||||
type ByteArray struct {
|
||||
*abstractItem
|
||||
val []byte
|
||||
}
|
||||
|
||||
//ByteArray overrides the default abstractItem Bytes array method
|
||||
func (ba *ByteArray) ByteArray() (*ByteArray, error) {
|
||||
return ba, nil
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue