Skip to content

Commit

Permalink
cutUpgradeNoticePeriod
Browse files Browse the repository at this point in the history
  • Loading branch information
Barichek committed Nov 10, 2021
1 parent 78a301d commit 3f23396
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contracts/contracts/AdditionalZkSync.sol
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ contract AdditionalZkSync is Storage, Config, Events, ReentrancyGuard {
];
for (uint256 id = 0; id < SECURITY_COUNCIL_MEMBERS_NUMBER; ++id) {
if (SECURITY_COUNCIL_MEMBERS[id] == addr) {
require(upgradeStartTimestamp != 0);
require(securityCouncilApproves[id] == false);
securityCouncilApproves[id] = true;
numberOfApprovalsFromSecurityCouncil++;
Expand All @@ -139,12 +138,14 @@ contract AdditionalZkSync is Storage, Config, Events, ReentrancyGuard {

function cutUpgradeNoticePeriod() external {
requireActive();
require(upgradeStartTimestamp != 0);

approvedCutUpgradeNoticePeriod(msg.sender);
}

function cutUpgradeNoticePeriodBySignature(bytes[] calldata signatures) external {
requireActive();
require(upgradeStartTimestamp != 0);

address gatekeeper = 0x38A43F4330f24fe920F943409709fc9A6084C939;
(, bytes memory newTarget0) = gatekeeper.call(abi.encodeWithSignature("nextTargets(uint)", 0));
Expand Down

0 comments on commit 3f23396

Please sign in to comment.