Skip to content

Commit

Permalink
Merge pull request #97 from zkLinkProtocol/issues_96
Browse files Browse the repository at this point in the history
fix bridge deploy bug
  • Loading branch information
zkbenny authored Apr 10, 2024
2 parents 7a8d04e + 9e4eaa0 commit a523286
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contracts/zksync/l1-contracts/bridge/L1ERC20Bridge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ contract L1ERC20Bridge is IL1Bridge, IL1BridgeLegacy, ReentrancyGuard {
/// @notice _factoryDeps[1] == a raw bytecode of proxy that is used as L2 bridge
/// @notice _factoryDeps[2] == a raw bytecode of token proxy
/// @param _factoryDepByteCodeHashes A list of raw bytecode sha256 hashes that are needed for deployment of the L2 bridge
/// @param _l2BridgeConstructorData The data that is needed for constructor of the L2 bridge
/// @param _l2TokenBeacon Pre-calculated address of the L2 token upgradeable beacon
/// @notice At the time of the function call, it is not yet deployed in L2, but knowledge of its address
/// @notice is necessary for determining L2 token address by L1 address, see `l2TokenAddress(address)` function
Expand All @@ -82,6 +83,7 @@ contract L1ERC20Bridge is IL1Bridge, IL1BridgeLegacy, ReentrancyGuard {
function initialize(
bytes[] calldata _factoryDeps,
bytes32[] calldata _factoryDepByteCodeHashes,
bytes calldata _l2BridgeConstructorData,
address _l2TokenBeacon,
address _governor,
uint256 _deployBridgeImplementationFee,
Expand Down Expand Up @@ -114,7 +116,7 @@ contract L1ERC20Bridge is IL1Bridge, IL1BridgeLegacy, ReentrancyGuard {
zkSync,
_deployBridgeImplementationFee,
l2BridgeImplementationBytecodeHash,
"", // Empty constructor data
_l2BridgeConstructorData,
_factoryDeps // All factory deps are needed for L2 bridge
);

Expand Down

0 comments on commit a523286

Please sign in to comment.