Skip to content

Commit

Permalink
readable message fot security council
Browse files Browse the repository at this point in the history
  • Loading branch information
Barichek committed Nov 11, 2021
1 parent 28f95b8 commit 8ac70b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/contracts/AdditionalZkSync.sol
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ contract AdditionalZkSync is Storage, Config, Events, ReentrancyGuard {
(, bytes memory newTarget2) = gatekeeper.call(abi.encodeWithSignature("nextTargets(uint256)", 2));

bytes32 targetsHash = keccak256(abi.encodePacked(newTarget0, newTarget1, newTarget2));
bytes32 messageHash = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", targetsHash));
bytes32 messageHash = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n110", "Approved new ZkSync's target contracts hash\n0x", Bytes.bytesToHexASCIIBytes(abi.encodePacked(targetsHash))));

for (uint256 i = 0; i < signatures.length; ++i) {
address recoveredAddress = Utils.recoverAddressFromEthSignature(signatures[i], messageHash);
Expand Down

0 comments on commit 8ac70b9

Please sign in to comment.