don't error when store key missing

This commit is contained in:
Roy Crihfield 2023-09-21 20:22:12 +08:00
parent 61fe74ca3b
commit d82c676777

View File

@ -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