Skip to content

Commit

Permalink
x/gov: fix NormalizeProposalType() return values
Browse files Browse the repository at this point in the history
Closes: #8806
  • Loading branch information
Alessio Treglia committed Mar 5, 2021
1 parent a65f838 commit 900a387
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions x/gov/client/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ func NormalizeProposalType(proposalType string) string {
func NormalizeProposalStatus(status string) string {
switch status {
case "DepositPeriod", "deposit_period":
return "DepositPeriod"
return "PROPOSAL_STATUS_DEPOSIT_PERIOD"
case "VotingPeriod", "voting_period":
return "VotingPeriod"
return "PROPOSAL_STATUS_VOTING_PERIOD"
case "Passed", "passed":
return "Passed"
return "PROPOSAL_STATUS_PASSED"
case "Rejected", "rejected":
return "Rejected"
return "PROPOSAL_STATUS_REJECTED"
default:
return status
}
Expand Down

0 comments on commit 900a387

Please sign in to comment.