File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
l1-contracts/deploy-scripts/dev Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ contract SetupLegacyBridge is Script {
104
104
function setParamsForDummyBridge () internal {
105
105
(address l2TokenBeacon , bytes32 l2TokenBeaconHash ) = calculateTokenBeaconAddress ();
106
106
DummyL1ERC20Bridge bridge = DummyL1ERC20Bridge (addresses.erc20BridgeProxy);
107
+ vm.broadcast ();
107
108
bridge.setValues (config.l2SharedBridgeAddress, l2TokenBeacon, l2TokenBeaconHash);
108
109
}
109
110
@@ -124,10 +125,15 @@ contract SetupLegacyBridge is Script {
124
125
bytes memory beaconProxy = Utils.readHardhatBytecode (
125
126
"/../l2-contracts/artifacts-zk/@openzeppelin/contracts/proxy/beacon/BeaconProxy.sol/BeaconProxy.json "
126
127
);
128
+ tokenBeaconBytecodeHash = L2ContractHelper.hashL2Bytecode (beaconProxy);
127
129
128
- (tokenBeaconAddress, tokenBeaconBytecodeHash) = calculateL2Create2Address (
130
+ bytes memory upgradableBeacon = Utils.readHardhatBytecode (
131
+ "/../l2-contracts/artifacts-zk/@openzeppelin/contracts/proxy/beacon/UpgradeableBeacon.sol/UpgradeableBeacon.json "
132
+ );
133
+
134
+ (tokenBeaconAddress, ) = calculateL2Create2Address (
129
135
config.l2SharedBridgeAddress,
130
- beaconProxy ,
136
+ upgradableBeacon ,
131
137
bytes32 (0 ),
132
138
abi.encode (l2StandardToken)
133
139
);
You can’t perform that action at this time.
0 commit comments