2019-11-28 16:06:09 +00:00
|
|
|
package state
|
2019-11-25 17:39:11 +00:00
|
|
|
|
2019-11-26 15:47:07 +00:00
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2020-11-23 11:09:00 +00:00
|
|
|
"github.com/nspcc-dev/neo-go/internal/testserdes"
|
2019-11-26 15:47:07 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestEncodeDecodeStorageItem(t *testing.T) {
|
|
|
|
storageItem := &StorageItem{
|
|
|
|
Value: []byte{},
|
|
|
|
IsConst: false,
|
|
|
|
}
|
|
|
|
|
2020-03-26 14:43:24 +00:00
|
|
|
testserdes.EncodeDecodeBinary(t, storageItem, new(StorageItem))
|
2019-11-26 15:47:07 +00:00
|
|
|
}
|