Fixes for handling authority expiry queue #40

Merged
ashwin merged 4 commits from pm-fix-authority-reservation into main 2024-07-22 05:40:46 +00:00
Showing only changes of commit b183f2cd19 - Show all commits

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) return k.AuthorityExpiryQueue.Remove(ctx, expiryTime)
} else { } else {
existingNamesList.Value = newNamesSlice existingNamesList.Value = newNamesSlice