Closed 5-mark closed 2 years ago
2.3. isn't working because "proposalVoters" doesn't update on chain. The value keeps the same. @2075 could you have a look at it? (Maybe I'm doing something wrong).
@PAkhidue hm did you check on polkadot apps already? which extrinsic is it you are calling?
also could add this ``` ProposalVotes get(fn proposal_votes): map hasher(blake2_128_concat) T::Hash => u64 = 0;
proposalvoters should also update:
``` let mut voters = ProposalVoters::<T>::get(&proposal_id);
match voters.binary_search(&sender) {
Ok(_) => {}, // should never happen
Err(index) => {
voters.insert(index, sender.clone());
ProposalVoters::<T>::insert( &proposal_id, voters );
}
}```
maybe try a new campaign/voting?
also could add this ``` ProposalVotes get(fn proposal_votes): map hasher(blake2_128_concat) T::Hash => u64 = 0;
proposalvoters should also update: ``` let mut voters = ProposalVoters::<T>::get(&proposal_id); match voters.binary_search(&sender) { Ok(_) => {}, // should never happen Err(index) => { voters.insert(index, sender.clone()); ProposalVoters::<T>::insert( &proposal_id, voters ); } }``` maybe try a new campaign/voting?
Just saw that I've 2 different address formats and that's why I couldn't find my address in the list. Problem is solved.
Ready to test now on: https://gamedao-beta-c04v9jla0-75.vercel.app/
@PAkhidue 2.4 & 2.4.1 couldnt be tested. please implement that via #194. will close this ticket
User Story
As user I want to have a more intuitive user experience on the proposal detail page so I know always what is happening and not get confused
Acceptance Criteria
Additional Information
How to test