From 43b675cc0a2744fc7b46dfb3eac0131805f49b83 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Fri, 19 Jul 2024 11:30:15 +0000 Subject: [PATCH] Ignore error on not finding an authority expiry queue entry (#39) Part of https://git.vdb.to/cerc-io/laconic2d/issues/38 This is a hot fix for the issue, cause yet to be investigated. Reviewed-on: https://git.vdb.to/cerc-io/laconic2d/pulls/39 Co-authored-by: Prathamesh Musale Co-committed-by: Prathamesh Musale --- 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 }