Fix authorities expiry queue entry deletion

This commit is contained in:
Prathamesh Musale 2024-07-20 12:03:50 +05:30
parent 46eacc4760
commit b183f2cd19

View File

@ -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