From f438f0125412829cb6a5bd12a1e618523ecf8e93 Mon Sep 17 00:00:00 2001 From: Ihor Barenblat Date: Wed, 10 Nov 2021 17:02:04 +0200 Subject: [PATCH] cutUpgradeNoticePeriodBySignature --- contracts/contracts/AdditionalZkSync.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/contracts/AdditionalZkSync.sol b/contracts/contracts/AdditionalZkSync.sol index ecc63ba5a8..05cddfbb4e 100644 --- a/contracts/contracts/AdditionalZkSync.sol +++ b/contracts/contracts/AdditionalZkSync.sol @@ -149,7 +149,7 @@ contract AdditionalZkSync is Storage, Config, Events, ReentrancyGuard { address gatekeeper = 0x38A43F4330f24fe920F943409709fc9A6084C939; (, bytes memory newTargets) = gatekeeper.call(abi.encodeWithSignature("nextTargets()")); - bytes32 targetsHash = abi.encodePacked(newTargets); + bytes32 targetsHash = keccak256(abi.encodePacked(newTargets)); bytes32 messageHash = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", targetsHash)); for (uint256 i = 0; i < signatures.length; ++i) {