diff --git a/pkg/vm/stackitem/serialization.go b/pkg/vm/stackitem/serialization.go index e11da49c1..50c5a5f2e 100644 --- a/pkg/vm/stackitem/serialization.go +++ b/pkg/vm/stackitem/serialization.go @@ -152,7 +152,7 @@ func (w *serContext) serialize(item Item) error { case *Map: w.seen[item] = sliceNoPointer{} - elems := t.Value().([]MapElement) + elems := t.value w.data = append(w.data, byte(MapT)) w.appendVarUint(uint64(len(elems))) for i := range elems {