Fix authorities expiry queue entry deletion
This commit is contained in:
parent
46eacc4760
commit
b183f2cd19
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user