forked from TrueCloudLab/frostfs-contract
[#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:
parent
da56f4b53e
commit
af21f33657
8 changed files with 13 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue