[#88] container: Use large scope for container contract migration

With contract migration from v0.8.0 to v0.9.0 we need to replace
structures in contract memory. This produces native contract calls
that are not available in scope of `management.Update`. Therefore
we need to apply new scope first.

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
enable-notary-in-public-chains
Alex Vanin 2021-06-03 11:21:40 +03:00 committed by Alex Vanin
parent 2e2eb15729
commit 6daaa0c6d2
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,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("container contract updated")
return true