[#100] *: Use full scope in migration

As soon as migration required changes in memory, we
need bigger scope. Otherwise in requires two step migration
which is unpleasant and annoying.

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2021-06-30 13:59:32 +03:00 committed by Alex Vanin
parent da56f4b53e
commit af21f33657
8 changed files with 13 additions and 9 deletions

View file

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