From d82c6767775b91b973bea3baeeaa1424954a48d0 Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Thu, 21 Sep 2023 20:22:12 +0800 Subject: [PATCH] don't error when store key missing --- x/registry/keeper/keeper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/registry/keeper/keeper.go b/x/registry/keeper/keeper.go index 373d770f..57f9d389 100644 --- a/x/registry/keeper/keeper.go +++ b/x/registry/keeper/keeper.go @@ -389,7 +389,7 @@ func (k Keeper) GetAttributeMapping(ctx sdk.Context, key []byte) ([]string, erro store := ctx.KVStore(k.storeKey) if !store.Has(key) { - return nil, fmt.Errorf("store doesn't have key") + return nil, nil } var recordIds []string