From 45a1ed1b40f7da8fcfa06251248ca436c2260141 Mon Sep 17 00:00:00 2001 From: Danil Date: Tue, 10 Sep 2024 14:52:41 +0200 Subject: [PATCH] Update l1-contracts/deploy-scripts/dev/SetupLegacyBridge.s.sol Co-authored-by: Vlad Bochok <41153528+vladbochok@users.noreply.github.com> --- l1-contracts/deploy-scripts/dev/SetupLegacyBridge.s.sol | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/l1-contracts/deploy-scripts/dev/SetupLegacyBridge.s.sol b/l1-contracts/deploy-scripts/dev/SetupLegacyBridge.s.sol index aea1ab7e10..d794b51a48 100644 --- a/l1-contracts/deploy-scripts/dev/SetupLegacyBridge.s.sol +++ b/l1-contracts/deploy-scripts/dev/SetupLegacyBridge.s.sol @@ -5,9 +5,7 @@ import {Script, console2 as console} from "forge-std/Script.sol"; import {stdToml} from "forge-std/StdToml.sol"; import {Utils} from "./../Utils.sol"; import {L1SharedBridge} from "contracts/bridge/L1SharedBridge.sol"; -import {L1ERC20Bridge} from "contracts/bridge/L1ERC20Bridge.sol"; import {DummyL1ERC20Bridge} from "contracts/dev-contracts/DummyL1ERC20Bridge.sol"; -import {DiamondProxy} from "contracts/state-transition/chain-deps/DiamondProxy.sol"; import {ProxyAdmin} from "@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol"; import {ITransparentUpgradeableProxy} from "@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol"; import {L2ContractHelper} from "contracts/common/libraries/L2ContractHelper.sol"; @@ -117,7 +115,7 @@ contract SetupLegacyBridge is Script { bytes memory l2StandardTokenCode = Utils.readHardhatBytecode( "/../l2-contracts/artifacts-zk/contracts/bridge/L2StandardERC20.sol/L2StandardERC20.json" ); - (address l2StandardToken, bytes32 l2StandardTokenBytecodeHash) = calculateL2Create2Address( + (address l2StandardToken,) = calculateL2Create2Address( config.l2SharedBridgeAddress, l2StandardTokenCode, bytes32(0),