Skip to content

Commit

Permalink
Fix json naming
Browse files Browse the repository at this point in the history
  • Loading branch information
alpe committed Jul 13, 2020
1 parent 6c38d8c commit c92f9df
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion x/wasm/client/proposal_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func TestGovRestHandlers(t *testing.T) {
"title": "Test Proposal",
"description": "My proposal",
"type": "instantiate",
"sender": "cosmos100dejzacpanrldpjjwksjm62shqhyss44jf5xz",
"creator": "cosmos100dejzacpanrldpjjwksjm62shqhyss44jf5xz",
"admin": "cosmos100dejzacpanrldpjjwksjm62shqhyss44jf5xz",
"code_id": "1",
"label": "https://example.com/",
Expand Down
8 changes: 4 additions & 4 deletions x/wasm/client/rest/gov.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ import (
type StoreCodeProposalJsonReq struct {
BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"`

Title string `json:"title" yaml:"title"`
Description string `json:"description" yaml:"description"`
Proposer sdk.AccAddress `json:"proposer" yaml:"proposer"`
Deposit sdk.Coins `json:"deposit" yaml:"deposit"`
Title string `json:"title" yaml:"title"`
Description string `json:"description" yaml:"description"`
Proposer sdk.AccAddress `json:"proposer" yaml:"proposer"`
Deposit sdk.Coins `json:"deposit" yaml:"deposit"`

Creator sdk.AccAddress `json:"creator" yaml:"creator"`
// WASMByteCode can be raw or gzip compressed
Expand Down
2 changes: 1 addition & 1 deletion x/wasm/internal/types/proposal.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func (p StoreCodeProposal) String() string {
type InstantiateContractProposal struct {
WasmProposal
// Creator is the address that pays the init funds
Creator sdk.AccAddress `json:"sender" yaml:"sender"`
Creator sdk.AccAddress `json:"creator" yaml:"creator"`
// Admin is an optional address that can execute migrations
Admin sdk.AccAddress `json:"admin,omitempty" yaml:"admin"`
Code uint64 `json:"code_id" yaml:"code_id"`
Expand Down

0 comments on commit c92f9df

Please sign in to comment.