diff --git a/frostfsid/frostfsid_contract.go b/frostfsid/frostfsid_contract.go index 15099ab..250deeb 100644 --- a/frostfsid/frostfsid_contract.go +++ b/frostfsid/frostfsid_contract.go @@ -103,7 +103,8 @@ func _deploy(data any, isUpdate bool) { ctx := storage.GetContext() args := data.(struct { - admin interop.Hash160 + admin interop.Hash160 + version int }) if args.admin != nil { @@ -114,6 +115,7 @@ func _deploy(data any, isUpdate bool) { } if isUpdate { + common.CheckVersion(args.version) it := storage.Find(ctx, subjectKeysPrefix, storage.ValuesOnly) for iterator.Next(it) { subjectRaw := iterator.Value(it)