VM: Add stackItems; Array, Boolean, Int and ByteArray

This commit is contained in:
BlockChainDev 2019-02-27 20:55:48 +00:00
parent e29b85d0d7
commit d8d27761ae
4 changed files with 77 additions and 0 deletions

12
pkg/vm/stack/bytearray.go Normal file
View 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
}