Skip to content

Commit

Permalink
fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
StanislavBreadless committed Aug 29, 2024
1 parent de2cca7 commit 464382e
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
8 changes: 4 additions & 4 deletions l1-contracts/contracts/bridgehub/Bridgehub.sol
Original file line number Diff line number Diff line change
Expand Up @@ -721,10 +721,10 @@ contract Bridgehub is IBridgehub, ReentrancyGuard, Ownable2StepUpgradeable, Paus
require(stm != address(0), "BH: assetInfo 2");
require(settlementLayer[bridgeData.chainId] != block.chainid, "BH: already current SL");

settlementLayer[_chainId] = block.chainid;
stateTransitionManager[_chainId] = stm;
settlementLayer[bridgeData.chainId] = block.chainid;
stateTransitionManager[bridgeData.chainId] = stm;

address hyperchain = getHyperchain(_chainId);
address hyperchain = getHyperchain(bridgeData.chainId);
bool contractAlreadyDeployed = hyperchain != address(0);
if (!contractAlreadyDeployed) {
hyperchain = IStateTransitionManager(stm).forwardedBridgeMint(bridgeData.chainId, bridgeData.stmData);
Expand All @@ -733,7 +733,7 @@ contract Bridgehub is IBridgehub, ReentrancyGuard, Ownable2StepUpgradeable, Paus
messageRoot.addNewChain(bridgeData.chainId);
}

IZkSyncHyperchain(hyperchain).forwardedBridgeMint(bridgeData.chainData);
IZkSyncHyperchain(hyperchain).forwardedBridgeMint(bridgeData.chainData, contractAlreadyDeployed);

emit MigrationFinalized(bridgeData.chainId, _assetId, hyperchain);
}
Expand Down
Loading

0 comments on commit 464382e

Please sign in to comment.