[#208] neofs: delete old OwnerKey

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2022-01-10 17:16:50 +03:00 committed by Alex Vanin
parent d9bfe32847
commit b8d2569f4d

View file

@ -52,6 +52,10 @@ func _deploy(data interface{}, isUpdate bool) {
// common.CheckVersion(args[len(args)-1].(int))
ctx := storage.GetContext()
// TODO(@fyrchik): remove after mainnet update
storage.Delete(ctx, common.LegacyOwnerKey)
nodes := getNodes(ctx, candidatesKey)
storage.Delete(ctx, candidatesKey)