Skip to content

Commit

Permalink
fix parse error (#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
yys authored Mar 3, 2021
1 parent f99a6c7 commit eb93425
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion x/treasury/client/cli/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type (
RewardWeightUpdateProposalJSON struct {
Title string `json:"title" yaml:"title"`
Description string `json:"description" yaml:"description"`
RewardWeight sdk.Dec `json:"tax_rate" yaml:"tax_rate"`
RewardWeight sdk.Dec `json:"reward_weight" yaml:"reward_weight"`
Deposit sdk.Coins `json:"deposit" yaml:"deposit"`
}
)
Expand Down
4 changes: 2 additions & 2 deletions x/treasury/internal/types/proposal.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ type RewardWeightUpdateProposal struct {
}

// NewRewardWeightUpdateProposal creates an RewardWeightUpdateProposal.
func NewRewardWeightUpdateProposal(title, description string, taxRate sdk.Dec) RewardWeightUpdateProposal {
return RewardWeightUpdateProposal{title, description, taxRate}
func NewRewardWeightUpdateProposal(title, description string, RewardWeight sdk.Dec) RewardWeightUpdateProposal {
return RewardWeightUpdateProposal{title, description, RewardWeight}
}

// GetTitle returns the title of an RewardWeightUpdateProposal.
Expand Down

0 comments on commit eb93425

Please sign in to comment.