Skip to content

Commit

Permalink
rm redundant type string
Browse files Browse the repository at this point in the history
  • Loading branch information
huichiaotsou committed May 4, 2022
1 parent e4d1c75 commit 549496d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion modules/gov/utils_proposal.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (m *Module) updateDeletedProposalStatus(id uint64) error {

// handleParamChangeProposal updates params to the corresponding modules if a ParamChangeProposal has passed
func (m *Module) handleParamChangeProposal(height int64, proposal govtypes.Proposal) error {
if proposal.Status.String() != types.ProposalStatusPassed {
if proposal.Status != govtypes.StatusPassed {
// If the status of ParamChangeProposal is not passed, do nothing
return nil
}
Expand Down
1 change: 0 additions & 1 deletion types/gov.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (

const (
ProposalStatusInvalid = "PROPOSAL_STATUS_INVALID"
ProposalStatusPassed = "PROPOSAL_STATUS_PASSED"
)

// DepositParams contains the data of the deposit parameters of the x/gov module
Expand Down

0 comments on commit 549496d

Please sign in to comment.