From 6561c2f63d6530fcddf3b3020943e802827438f2 Mon Sep 17 00:00:00 2001 From: kelemeno Date: Wed, 24 Jan 2024 18:33:32 +0000 Subject: [PATCH] modified scripts for weth deployment --- l1-contracts/src.ts/utils-bytecode.ts | 2 +- l1-contracts/test/test_config/constant/hardhat.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/l1-contracts/src.ts/utils-bytecode.ts b/l1-contracts/src.ts/utils-bytecode.ts index 42f01577a..590503e9d 100644 --- a/l1-contracts/src.ts/utils-bytecode.ts +++ b/l1-contracts/src.ts/utils-bytecode.ts @@ -84,7 +84,7 @@ export function calculateWethAddresses( ethers.constants.HashZero ); - const proxyInitializationParams = L2_WETH_INTERFACE.encodeFunctionData("initialize", ["Wrapped Ether", "WETH"]); + const proxyInitializationParams = L2_WETH_INTERFACE.encodeFunctionData("initializeV2", ["Wrapped Ether", "WETH", l2WethBridgeProxyAddress, l1WethAddress, ethIsBaseToken ]); const l2WethProxyAddress = computeL2Create2Address( l2WethBridgeProxyAddress, L2_WETH_PROXY_BYTECODE, diff --git a/l1-contracts/test/test_config/constant/hardhat.json b/l1-contracts/test/test_config/constant/hardhat.json index 762c23762..222901473 100644 --- a/l1-contracts/test/test_config/constant/hardhat.json +++ b/l1-contracts/test/test_config/constant/hardhat.json @@ -93,6 +93,6 @@ "name": "Wrapped Ether", "symbol": "WETH", "decimals": 18, - "address": "0xF4d5D83386397278e9ADC349064a42FE1711baeb" + "address": "0x053Ea9b57a6CABD2EC65a9Aec8C744610B179E5F" } -] +] \ No newline at end of file