Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix bridge deploy bug #97

Merged
merged 1 commit into from
Apr 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading