Skip to content

Commit

Permalink
Supply patch for REST (cosmos#4698)
Browse files Browse the repository at this point in the history
While reintroducing the contract tests a little discrepancy was noted:

* type from integer to string in the swagger definition for supply/total/{denominator}
* remove slash from supply/total route in the implementation
  • Loading branch information
sabau authored and Alessio Treglia committed Jul 9, 2019
1 parent 1c9a188 commit 8a042de
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/lcd/statik/statik.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/lcd/swagger-ui/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1862,7 +1862,7 @@ paths:
200:
description: OK
schema:
type: integer
type: string
400:
description: Invalid coin denomination
500:
Expand Down
2 changes: 1 addition & 1 deletion x/supply/client/rest/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router) {
func registerQueryRoutes(cliCtx context.CLIContext, r *mux.Router) {
// Query the total supply of coins
r.HandleFunc(
"/supply/total/",
"/supply/total",
totalSupplyHandlerFn(cliCtx),
).Methods("GET")

Expand Down

0 comments on commit 8a042de

Please sign in to comment.