Skip to content

Commit

Permalink
fix: remove redundant check for _mustNotHaveVotedYet (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
aliXsed authored Sep 23, 2024
2 parents ebdd95d + ce7d707 commit 6afd0c7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/bridge/GrantsMigration.sol
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ contract GrantsMigration is BridgeBase {
_mustNotHaveExecutedYet(paraTxHash);

if (_proposalExists(paraTxHash)) {
_mustNotHaveVotedYet(paraTxHash, msg.sender);
_mustNotBeChangingParameters(paraTxHash, user, amount, schedules);
_recordVote(paraTxHash, msg.sender);
} else {
Expand Down
1 change: 0 additions & 1 deletion src/bridge/NODLMigration.sol
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ contract NODLMigration is BridgeBase {
_mustNotHaveExecutedYet(paraTxHash);

if (_proposalExists(paraTxHash)) {
_mustNotHaveVotedYet(paraTxHash, msg.sender);
_mustNotBeChangingParameters(paraTxHash, user, amount);
_recordVote(paraTxHash, msg.sender);
} else {
Expand Down

0 comments on commit 6afd0c7

Please sign in to comment.