@@ -5,7 +5,6 @@ import { Script } from "forge-std/Script.sol";
55import { Test } from "forge-std/Test.sol " ;
66import { console } from "forge-std/console.sol " ;
77import { Optimism_SpokePool } from "../contracts/Optimism_SpokePool.sol " ;
8- import { WETH9Interface } from "../contracts/external/interfaces/WETH9Interface.sol " ;
98import { DeploymentUtils } from "./utils/DeploymentUtils.sol " ;
109
1110// How to run:
@@ -25,7 +24,7 @@ contract DeployOptimismSpokePool is Script, Test, DeploymentUtils {
2524 console.log ("HubPool address: " , info.hubPool);
2625
2726 // Get the appropriate addresses for this chain
28- WETH9Interface weth = getWrappedNativeToken (info.spokeChainId);
27+ address weth = getWETHAddress (info.spokeChainId);
2928
3029 // Get L2 addresses for Optimism
3130 address cctpTokenMessenger = getL2Address (info.spokeChainId, "cctpTokenMessenger " );
@@ -34,7 +33,7 @@ contract DeployOptimismSpokePool is Script, Test, DeploymentUtils {
3433
3534 // Prepare constructor arguments for Optimism_SpokePool
3635 bytes memory constructorArgs = abi.encode (
37- address ( weth) , // _wrappedNativeTokenAddress
36+ weth, // _wrappedNativeTokenAddress
3837 QUOTE_TIME_BUFFER (), // _depositQuoteTimeBuffer
3938 FILL_DEADLINE_BUFFER (), // _fillDeadlineBuffer
4039 getUSDCAddress (info.spokeChainId), // _l2Usdc
@@ -62,7 +61,7 @@ contract DeployOptimismSpokePool is Script, Test, DeploymentUtils {
6261 console.log ("Chain ID: " , info.spokeChainId);
6362 console.log ("Hub Chain ID: " , info.hubChainId);
6463 console.log ("HubPool address: " , info.hubPool);
65- console.log ("WETH address: " , address ( weth) );
64+ console.log ("WETH address: " , weth);
6665 console.log ("CCTP Token Messenger: " , cctpTokenMessenger);
6766 console.log ("USDC address: " , getUSDCAddress (info.spokeChainId));
6867 console.log ("Optimism_SpokePool proxy deployed to: " , result.proxy);
0 commit comments