From 900a387d038915008a3f1cf6a4def32387d6aa5d Mon Sep 17 00:00:00 2001 From: Alessio Treglia Date: Fri, 5 Mar 2021 22:16:47 +0000 Subject: [PATCH] x/gov: fix NormalizeProposalType() return values Closes: #8806 --- x/gov/client/utils/utils.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/x/gov/client/utils/utils.go b/x/gov/client/utils/utils.go index c88be3df3cb..01634d04f9f 100644 --- a/x/gov/client/utils/utils.go +++ b/x/gov/client/utils/utils.go @@ -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 }