[#100] reputation: Use full scope in migration

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
enable-notary-in-public-chains
Alex Vanin 2021-07-01 20:41:27 +03:00 committed by Alex Vanin
parent 12889ac87e
commit f6a91140e5
1 changed files with 2 additions and 1 deletions

View File

@ -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