From fb61427da1e252f11bcc73ff44b84902e9f9c2c2 Mon Sep 17 00:00:00 2001 From: jonathansumner Date: Fri, 14 Jul 2023 15:59:48 +0100 Subject: [PATCH] fix: amend error check Signed-off-by: jonathansumner --- x/mint/keeper/grpc_query.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/mint/keeper/grpc_query.go b/x/mint/keeper/grpc_query.go index eb5be76ad1..906af97e2d 100644 --- a/x/mint/keeper/grpc_query.go +++ b/x/mint/keeper/grpc_query.go @@ -37,7 +37,7 @@ func (k Keeper) MunicipalInflation(c context.Context, req *types.QueryMunicipalI } infl, exists := minter.MunicipalInflation[denom] - if exists { + if !exists { return nil, fmt.Errorf("there is no municipal inflation defined for requested \"%s\" denomination", denom) }