From f6a91140e5f632dbc3ecc61513fcd9cfaad4249c Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Thu, 1 Jul 2021 20:41:27 +0300 Subject: [PATCH] [#100] reputation: Use full scope in migration Signed-off-by: Alex Vanin --- reputation/reputation_contract.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reputation/reputation_contract.go b/reputation/reputation_contract.go index 479f8da..cd5bc37 100644 --- a/reputation/reputation_contract.go +++ b/reputation/reputation_contract.go @@ -2,6 +2,7 @@ package reputationcontract import ( "github.com/nspcc-dev/neo-go/pkg/interop" + "github.com/nspcc-dev/neo-go/pkg/interop/contract" "github.com/nspcc-dev/neo-go/pkg/interop/iterator" "github.com/nspcc-dev/neo-go/pkg/interop/native/management" "github.com/nspcc-dev/neo-go/pkg/interop/native/std" @@ -51,7 +52,7 @@ func Migrate(script []byte, manifest []byte, data interface{}) bool { return false } - management.UpdateWithData(script, manifest, data) + contract.Call(interop.Hash160(management.Hash), "update", contract.All, script, manifest, data) runtime.Log("reputation contract updated") return true