Skip to content

Commit

Permalink
Add TODO to allow to override erroneous vote
Browse files Browse the repository at this point in the history
  • Loading branch information
tensojka committed Nov 23, 2023
1 parent 9eec3ea commit aadf5b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/proposals.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ mod Proposals {
let gov_token_addr = state.get_governance_token_address();
let caller_addr = get_caller_address();
let curr_vote_status: felt252 = state.proposal_voted_by.read((prop_id, caller_addr));
// TODO allow override of previous vote
assert(curr_vote_status == 0, 'already voted');

let caller_balance_u256: u256 = IERC20Dispatcher { contract_address: gov_token_addr }
Expand Down

0 comments on commit aadf5b6

Please sign in to comment.