Skip to content

Commit

Permalink
chore(auth): return accId in error (backport cosmos#17903) (cosmos#17906
Browse files Browse the repository at this point in the history
)

Co-authored-by: Marko <[email protected]>
Co-authored-by: Julien Robert <[email protected]>
  • Loading branch information
3 people authored and mmsqe committed Oct 9, 2023
1 parent 4a73054 commit 22f68a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/auth/keeper/grpc_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (ak AccountKeeper) AccountAddressByID(c context.Context, req *types.QueryAc
ctx := sdk.UnwrapSDKContext(c)
address := ak.GetAccountAddressByID(ctx, accId)
if len(address) == 0 {
return nil, status.Errorf(codes.NotFound, "account address not found with account number %d", req.Id)
return nil, status.Errorf(codes.NotFound, "account address not found with account number %d", accId)
}

return &types.QueryAccountAddressByIDResponse{AccountAddress: address}, nil
Expand Down

0 comments on commit 22f68a4

Please sign in to comment.