[#207] neofsid: remove old transition code

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
remotes/1720004089320002313/tmp_refs/heads/v0.14.1-hotfix
Evgenii Stratonikov 2021-12-28 13:21:02 +03:00 committed by Alex Vanin
parent 1944a4332b
commit 8226bd4e43
1 changed files with 0 additions and 14 deletions

View File

@ -6,7 +6,6 @@ import (
"github.com/nspcc-dev/neo-go/pkg/interop/iterator"
"github.com/nspcc-dev/neo-go/pkg/interop/native/crypto"
"github.com/nspcc-dev/neo-go/pkg/interop/native/management"
"github.com/nspcc-dev/neo-go/pkg/interop/native/std"
"github.com/nspcc-dev/neo-go/pkg/interop/runtime"
"github.com/nspcc-dev/neo-go/pkg/interop/storage"
"github.com/nspcc-dev/neofs-contract/common"
@ -34,19 +33,6 @@ func _deploy(data interface{}, isUpdate bool) {
if isUpdate {
storage.Delete(ctx, common.LegacyOwnerKey)
it := storage.Find(ctx, []byte{}, storage.None)
for iterator.Next(it) {
kv := iterator.Value(it).([][]byte)
// V2 format
if len(kv[0]) == ownerSize {
info := std.Deserialize(kv[1]).(UserInfo)
key := append([]byte{ownerKeysPrefix}, kv[0]...)
for i := range info.Keys {
storage.Put(ctx, append(key, info.Keys[i]...), []byte{1})
}
storage.Delete(ctx, kv[0])
}
}
return
}