Skip to content

Commit 3e53065

Browse files
committed
Didn't need to do this after all
1 parent f39af18 commit 3e53065

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

src/FlexVotingClient.sol

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,6 @@ abstract contract FlexVotingClient {
125125
function expressVote(uint256 proposalId, uint8 support) external virtual {
126126
address voter = msg.sender;
127127
uint256 weight = getPastRawBalance(voter, GOVERNOR.proposalSnapshot(proposalId));
128-
_expressVote(voter, proposalId, support, weight);
129-
}
130-
131-
function _expressVote(address voter, uint256 proposalId, uint8 support, uint256 weight)
132-
internal
133-
virtual
134-
{
135128
if (weight == 0) revert FlexVotingClient__NoVotingWeight();
136129

137130
if (proposalVotersHasVoted[proposalId][voter]) revert FlexVotingClient__AlreadyVoted();

src/FlexVotingDelegatable.sol

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,6 @@ abstract contract FlexVotingDelegatable is Context, FlexVotingClient {
2222

2323
mapping(address account => address) private _delegatee;
2424

25-
function expressVote(uint256 proposalId, uint8 support) external virtual override {
26-
address voter = _msgSender();
27-
uint256 weight =
28-
FlexVotingClient.getPastRawBalance(voter, GOVERNOR.proposalSnapshot(proposalId));
29-
_expressVote(voter, proposalId, support, weight);
30-
}
31-
3225
// @dev Delegates votes from the sender to `delegatee`.
3326
function delegate(address delegatee) public virtual {
3427
address account = _msgSender();

0 commit comments

Comments
 (0)