Skip to content

Commit 1bd79f1

Browse files
committed
fmt
1 parent 8ac70b9 commit 1bd79f1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

contracts/contracts/AdditionalZkSync.sol

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,13 @@ contract AdditionalZkSync is Storage, Config, Events, ReentrancyGuard {
153153
(, bytes memory newTarget2) = gatekeeper.call(abi.encodeWithSignature("nextTargets(uint256)", 2));
154154

155155
bytes32 targetsHash = keccak256(abi.encodePacked(newTarget0, newTarget1, newTarget2));
156-
bytes32 messageHash = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n110", "Approved new ZkSync's target contracts hash\n0x", Bytes.bytesToHexASCIIBytes(abi.encodePacked(targetsHash))));
156+
bytes32 messageHash = keccak256(
157+
abi.encodePacked(
158+
"\x19Ethereum Signed Message:\n110",
159+
"Approved new ZkSync's target contracts hash\n0x",
160+
Bytes.bytesToHexASCIIBytes(abi.encodePacked(targetsHash))
161+
)
162+
);
157163

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

0 commit comments

Comments
 (0)