From b1710bebaaba519d8412d0c733cca00f011eab11 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Wed, 12 May 2021 21:49:42 +0300 Subject: [PATCH] native: fix errcheck errors in nns contract --- pkg/core/native/name_service.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/core/native/name_service.go b/pkg/core/native/name_service.go index 0044624d3..7e3893f90 100644 --- a/pkg/core/native/name_service.go +++ b/pkg/core/native/name_service.go @@ -565,7 +565,7 @@ func (s *nameState) EncodeBinary(w *io.BinWriter) { func (s *nameState) DecodeBinary(r *io.BinReader) { item := stackitem.DecodeBinaryStackItem(r) if r.Err == nil { - s.FromStackItem(item) + r.Err = s.FromStackItem(item) } } @@ -700,7 +700,7 @@ func (sl stringList) EncodeBinary(w *io.BinWriter) { func (sl *stringList) DecodeBinary(r *io.BinReader) { item := stackitem.DecodeBinaryStackItem(r) if r.Err == nil { - sl.FromStackItem(item) + r.Err = sl.FromStackItem(item) } }