From 3e54b46ffbddcfa4671fdb24c312cd28dc515c3e Mon Sep 17 00:00:00 2001 From: Evgeniy Stratonikov Date: Tue, 9 Mar 2021 13:18:34 +0300 Subject: [PATCH] rpc/tests: fix verification contract --- pkg/rpc/server/testdata/verification_contract.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/rpc/server/testdata/verification_contract.go b/pkg/rpc/server/testdata/verification_contract.go index 8ebad6985..03e9bb480 100644 --- a/pkg/rpc/server/testdata/verification_contract.go +++ b/pkg/rpc/server/testdata/verification_contract.go @@ -1,7 +1,6 @@ package testdata import ( - "github.com/nspcc-dev/neo-go/pkg/interop/convert" "github.com/nspcc-dev/neo-go/pkg/interop/runtime" "github.com/nspcc-dev/neo-go/pkg/interop/util" ) @@ -11,5 +10,5 @@ import ( func Verify() bool { tx := runtime.GetScriptContainer() addr := util.FromAddress("NbTiM6h8r99kpRtb428XcsUk1TzKed2gTc") - return util.Equals(convert.ToByteArray(tx.Sender), convert.ToByteArray(addr)) + return util.Equals(string(tx.Sender), string(addr)) }