From c68564276c5b414dab3c6f6603c66fddba0e2059 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Fri, 19 Jul 2024 16:29:25 +0530 Subject: [PATCH] Ignore error on not finding an authority expiry queue entry --- x/registry/keeper/naming_keeper.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/x/registry/keeper/naming_keeper.go b/x/registry/keeper/naming_keeper.go index f7423a7e..38f5844e 100644 --- a/x/registry/keeper/naming_keeper.go +++ b/x/registry/keeper/naming_keeper.go @@ -568,8 +568,13 @@ func (k Keeper) insertAuthorityExpiryQueue(ctx sdk.Context, name string, expiryT // deleteAuthorityExpiryQueue deletes an authority name from the authority expiry queue. func (k Keeper) deleteAuthorityExpiryQueue(ctx sdk.Context, name string, authority registrytypes.NameAuthority) error { expiryTime := authority.ExpiryTime + existingNamesList, err := k.AuthorityExpiryQueue.Get(ctx, expiryTime) if err != nil { + if errors.Is(err, collections.ErrNotFound) { + return nil + } + return err } -- 2.45.2