poanetwork / poa-dapps-voting

POA Network Governance Dapp
https://voting.poa.network
GNU General Public License v3.0
26 stars 54 forks source link

Increase ballots loading speed #219

Closed maxaleks closed 4 years ago

varasev commented 4 years ago

I renamed contractType to type in https://github.com/poanetwork/poa-dapps-voting/pull/219/commits/a1bde7092966b9d51e16ca5c15f5eb12aa2c631c since contractType is returned by the VotingToChangeProxy.getBallotInfo getter (and shouldn't be overwritten), and fixed the pos field so that it would store a unique number of the ballot within ballotsStore.ballotCards array (the pos is used by the vote feature).