Skip to content

Commit

Permalink
fix wrong error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonberg1997 committed Aug 1, 2023
1 parent 96bbaf3 commit 736af7f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions x/storage/keeper/grpc_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ func (k Keeper) HeadGroupNFT(goCtx context.Context, req *types.QueryNFTRequest)
ctx := sdk.UnwrapSDKContext(goCtx)
groupInfo, found := k.GetGroupInfoById(ctx, id)
if !found {
return nil, types.ErrNoSuchObject
return nil, types.ErrNoSuchGroup
}
return &types.QueryGroupNFTResponse{
MetaData: groupInfo.ToNFTMetadata(),
Expand Down Expand Up @@ -375,7 +375,7 @@ func validateAndGetId(req *types.QueryNFTRequest) (math.Uint, error) {
}

func (k Keeper) QueryPolicyForAccount(goCtx context.Context, req *types.QueryPolicyForAccountRequest) (*types.
QueryPolicyForAccountResponse,
QueryPolicyForAccountResponse,

Check failure on line 378 in x/storage/keeper/grpc_query.go

View workflow job for this annotation

GitHub Actions / golangci-lint (1.20.x, ubuntu-latest)

File is not `gofmt`-ed with `-s` `-r 'a[b:len(a)] -> a[b:]'` (gofmt)
error,
) {
if req == nil {
Expand Down Expand Up @@ -403,7 +403,7 @@ func (k Keeper) QueryPolicyForAccount(goCtx context.Context, req *types.QueryPol
}

func (k Keeper) QueryPolicyForGroup(goCtx context.Context, req *types.QueryPolicyForGroupRequest) (*types.
QueryPolicyForGroupResponse, error,
QueryPolicyForGroupResponse, error,
) {
if req == nil {
return nil, status.Error(codes.InvalidArgument, "invalid request")
Expand Down Expand Up @@ -547,7 +547,7 @@ func (k Keeper) HeadGroupMember(goCtx context.Context, req *types.QueryHeadGroup
}

func (k Keeper) QueryPolicyById(goCtx context.Context, req *types.QueryPolicyByIdRequest) (*types.
QueryPolicyByIdResponse, error,
QueryPolicyByIdResponse, error,
) {
if req == nil {
return nil, status.Error(codes.InvalidArgument, "invalid request")
Expand Down

0 comments on commit 736af7f

Please sign in to comment.