From 24fe1573c19b3d930178097ba9d5b7c1cd43772e Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Wed, 24 Mar 2021 11:12:44 +0300 Subject: [PATCH] [#58] proxy: Use alphabet list from chain Signed-off-by: Alex Vanin --- proxy/proxy_contract.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/proxy/proxy_contract.go b/proxy/proxy_contract.go index c1c626b..ef6036e 100644 --- a/proxy/proxy_contract.go +++ b/proxy/proxy_contract.go @@ -4,6 +4,7 @@ import ( "github.com/nspcc-dev/neo-go/pkg/interop" "github.com/nspcc-dev/neo-go/pkg/interop/native/gas" "github.com/nspcc-dev/neo-go/pkg/interop/native/management" + "github.com/nspcc-dev/neo-go/pkg/interop/native/neo" "github.com/nspcc-dev/neo-go/pkg/interop/runtime" "github.com/nspcc-dev/neo-go/pkg/interop/storage" "github.com/nspcc-dev/neofs-contract/common" @@ -54,11 +55,11 @@ func Migrate(script []byte, manifest []byte) bool { } func Verify() bool { - ctx := storage.GetReadOnlyContext() - sig := common.InnerRingMultiAddressViaStorage(ctx, netmapContractKey) + alphabet := neo.GetCommittee() + sig := common.Multiaddress(alphabet, false) if !runtime.CheckWitness(sig) { - sig = common.CommitteeMultiAddressViaStorage(ctx, netmapContractKey) + sig = common.Multiaddress(alphabet, true) return runtime.CheckWitness(sig) }