Skip to content

Commit

Permalink
update proposal.Equal
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnya97 committed Nov 5, 2018
1 parent 00c2534 commit 46f62d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion x/gov/proposals.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@ func ProposalEqual(proposalA Proposal, proposalB Proposal) bool {
proposalA.GetStatus() == proposalB.GetStatus() &&
proposalA.GetTallyResult().Equals(proposalB.GetTallyResult()) &&
proposalA.GetSubmitTime().Equal(proposalB.GetSubmitTime()) &&
proposalA.GetDepositEndTime().Equal(proposalB.GetDepositEndTime() &&)
proposalA.GetTotalDeposit().IsEqual(proposalB.GetTotalDeposit()) &&
proposalA.GetVotingStartTime().Equal(proposalB.GetVotingStartTime()) {
proposalA.GetVotingStartTime().Equal(proposalB.GetVotingStartTime()) &&
proposalA.GetVotingEndTime().Equal(proposalB.GetVotingEndTime()) {
return true
}
return false
Expand Down

0 comments on commit 46f62d5

Please sign in to comment.