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