Skip to content

Commit

Permalink
Merge pull request #221 from comdex-official/dutch_tests_1
Browse files Browse the repository at this point in the history
Improved naming convention in AuctionParams
  • Loading branch information
dheerajkd30 authored Jun 9, 2022
2 parents f56dc48 + 67e2563 commit 3c3ec0e
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 106 deletions.
4 changes: 2 additions & 2 deletions proto/comdex/auction/v1beta1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ message QueryParamsResponse {
}

message QueryAuctionParamRequest {
uint64 id = 1;
uint64 app_id = 1;
}

message QueryAuctionParamResponse {
Expand Down Expand Up @@ -239,6 +239,6 @@ service Query {
option (google.api.http).get = "/comdex/auction/v1beta1/protocolstats/{app_id}";
}
rpc QueryAuctionParams(QueryAuctionParamRequest) returns (QueryAuctionParamResponse) {
option (google.api.http).get = "/comdex/auction/v1beta1/auctionparams/{id}";
option (google.api.http).get = "/comdex/auction/v1beta1/auctionparams/{app_id}";
}
}
2 changes: 1 addition & 1 deletion x/auction/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ func queryAuctionParams() *cobra.Command {
res, err := queryClient.QueryAuctionParams(
context.Background(),
&types.QueryAuctionParamRequest{
Id: id,
AppId: id,
},
)
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions x/auction/keeper/query_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,9 @@ func (q *QueryServer) QueryAuctionParams(c context.Context, req *auctiontypes.Qu
ctx = sdk.UnwrapSDKContext(c)
)

item, found := q.GetAuctionParams(ctx, req.Id)
item, found := q.GetAuctionParams(ctx, req.AppId)
if !found {
return nil, status.Errorf(codes.NotFound, "Auction Params not exist for id %d", req.Id)
return nil, status.Errorf(codes.NotFound, "Auction Params not exist for id %d", req.AppId)
}

return &types.QueryAuctionParamResponse{
Expand Down
183 changes: 91 additions & 92 deletions x/auction/types/query.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3c3ec0e

Please sign in to comment.