Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
StanislavBreadless committed Aug 19, 2024
1 parent 9e52539 commit 859eed8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion l1-contracts/contracts/bridgehub/Bridgehub.sol
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,6 @@ contract Bridgehub is IBridgehub, ReentrancyGuard, Ownable2StepUpgradeable, Paus
bytes calldata _initData,
bytes[] calldata _factoryDeps
) external onlyOwnerOrAdmin nonReentrant whenNotPaused onlyL1 returns (uint256) {
require(L1_CHAIN_ID == block.chainid, "BH: New chain registration only allowed on L1");
require(_chainId != 0, "BH: chainId cannot be 0");
require(_chainId <= type(uint48).max, "BH: chainId too large");
require(_chainId != block.chainid, "BH: chain id must not match current chainid");
Expand Down
6 changes: 0 additions & 6 deletions l1-contracts/src.ts/deploy-test-process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,12 +230,6 @@ export async function initialEraTestnetDeploymentProcess(
);
await diamondAdminFacet.executeUpgradeNoOverlap(await deployer.upgradeZkSyncHyperchainDiamondCut());

const stateTransitionManager = deployer.stateTransitionManagerContract(deployer.deployWallet);
const registerData = stateTransitionManager.interface.encodeFunctionData("registerAlreadyDeployedHyperchain", [
deployer.chainId,
deployer.addresses.StateTransition.DiamondProxy,
]);
await deployer.executeUpgrade(deployer.addresses.StateTransition.StateTransitionProxy, 0, registerData);
await registerHyperchain(deployer, false, extraFacets, gasPrice, baseTokenName, deployer.chainId.toString(), true);
return deployer;
}
Expand Down

0 comments on commit 859eed8

Please sign in to comment.