Skip to content

Commit

Permalink
chore(auth): return accId in error (backport #17903) (#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 Sep 27, 2023
1 parent f29fcc5 commit 85034c1
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 85034c1

Please sign in to comment.