From b183f2cd19e5a5c3cda5f3e1f8bef1b2bf98ebe9 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Sat, 20 Jul 2024 12:03:50 +0530 Subject: [PATCH] Fix authorities expiry queue entry deletion --- x/registry/keeper/naming_keeper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/registry/keeper/naming_keeper.go b/x/registry/keeper/naming_keeper.go index f4c4f5f3..a810ad71 100644 --- a/x/registry/keeper/naming_keeper.go +++ b/x/registry/keeper/naming_keeper.go @@ -586,7 +586,7 @@ func (k Keeper) deleteAuthorityExpiryQueue(ctx sdk.Context, name string, authori } } - if len(existingNamesList.Value) == 0 { + if len(newNamesSlice) == 0 { return k.AuthorityExpiryQueue.Remove(ctx, expiryTime) } else { existingNamesList.Value = newNamesSlice