From b8d2569f4d073dabbd4053a3ca4c65f51c8b9213 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Mon, 10 Jan 2022 17:16:50 +0300 Subject: [PATCH] [#208] neofs: delete old OwnerKey Signed-off-by: Evgenii Stratonikov --- neofs/neofs_contract.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/neofs/neofs_contract.go b/neofs/neofs_contract.go index e6916ec..8d2c54a 100644 --- a/neofs/neofs_contract.go +++ b/neofs/neofs_contract.go @@ -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)