Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Barichek committed Nov 11, 2021
1 parent 8ac70b9 commit 1bd79f1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion contracts/contracts/AdditionalZkSync.sol
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,13 @@ 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:\n110", "Approved new ZkSync's target contracts hash\n0x", Bytes.bytesToHexASCIIBytes(abi.encodePacked(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 1bd79f1

Please sign in to comment.