Skip to content

Commit

Permalink
Add require for ecrecover
Browse files Browse the repository at this point in the history
  • Loading branch information
vladbochok committed Jan 9, 2022
1 parent 7e5f315 commit 2e790cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contracts/contracts/AdditionalZkSync.sol
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ contract AdditionalZkSync is Storage, Config, Events, ReentrancyGuard {

for (uint256 i = 0; i < signatures.length; ++i) {
address recoveredAddress = Utils.recoverAddressFromEthSignature(signatures[i], messageHash);
require(recoveredAddress != address(0x00), "p4"); // invalid signature
approveCutUpgradeNoticePeriod(recoveredAddress);
}
}
Expand Down

0 comments on commit 2e790cb

Please sign in to comment.