We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 910f814 commit 58d9caeCopy full SHA for 58d9cae
contracts/Voting.sol
@@ -127,7 +127,7 @@ contract Voting {
127
end_times[i] = polls[i].end_time;
128
fees[i] = polls[i].fee;
129
poll_ids[i] = i;
130
- voted_idxs[i] = polls[i].votes[msg.sender]-1;
+ voted_idxs[i] = polls[i].votes[msg.sender];
131
132
// get option_count from poll
133
uint option_count = polls[i].option_count;
hooks/useVoting.js
@@ -14,7 +14,7 @@ const useVoting = async () => {
14
const signer = provider.getSigner();
15
16
const contract = new ethers.Contract(
17
- "0x85bD1fAaf97566ffa78481A050321B6d9B10e984",
+ "0xfFD1a7105Fae1774971654EE8DcccC30Bb4846Cf",
18
Voting.abi,
19
signer
20
);
0 commit comments