Skip to content

Commit

Permalink
Adds support for Proposal Accepted, Expired (16)
Browse files Browse the repository at this point in the history
  • Loading branch information
dantudor committed Jun 29, 2021
1 parent 90e262e commit 48b7279
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions pkg/explorer/cfund_proposal_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var (
ProposalExpired = ProposalStatus{3, "expired"}
ProposalPendingFunds = ProposalStatus{4, "pending_funds"}
ProposalPendingVotingPreq = ProposalStatus{5, "pending_voting_preq"}
ProposalPaid = ProposalStatus{6, "paid"}
ProposalAcceptedExpired = ProposalStatus{16, "accepted_expired"}
)

var proposalStatus = [7]ProposalStatus{
Expand All @@ -26,7 +26,7 @@ var proposalStatus = [7]ProposalStatus{
ProposalExpired,
ProposalPendingFunds,
ProposalPendingVotingPreq,
ProposalPaid,
ProposalAcceptedExpired,
}

//noinspection GoUnreachableCode
Expand All @@ -37,10 +37,6 @@ func GetProposalStatusByState(state uint) ProposalStatus {
}
}

if state == 16 {
return proposalStatus[3]
}

log.Fatal("ProposalStatus state does not exist", state)
panic(0)
}
Expand Down

0 comments on commit 48b7279

Please sign in to comment.