forked from TrueCloudLab/frostfs-contract
[#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>
This commit is contained in:
parent
2e2eb15729
commit
6daaa0c6d2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue