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 lint #73

Merged
merged 1 commit into from
Sep 18, 2023
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
18 changes: 5 additions & 13 deletions packages/sdk/tasks/deploy-erc20.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,10 @@ import 'hardhat-deploy'
import { Contract, Wallet, providers, utils } from 'ethers'
import Artifact__WETH9 from '@eth-optimism/contracts-bedrock/forge-artifacts/WETH9.sol/WETH9.json'

import {
CrossChainMessenger,
MessageStatus,
CONTRACT_ADDRESSES,
OEContractsLike,
DEFAULT_L2_CONTRACT_ADDRESSES,
} from '../src'

const deployWETH9 = async (
hre: HardhatRuntimeEnvironment,
wrap: boolean,
signer: Wallet,
signer: Wallet
): Promise<Contract> => {
const Factory__WETH9 = new hre.ethers.ContractFactory(
Artifact__WETH9.abi,
Expand Down Expand Up @@ -50,13 +42,13 @@ task('deploy-erc20', 'Deploy WETH9 onto L2.')
.setAction(async (args, hre) => {
// Use signer 11, hopefully not used by anything else.
const wallet = Wallet.fromMnemonic(
"test test test test test test test test test test test junk",
'test test test test test test test test test test test junk',
"m/44'/60'/0'/0/10"
);
console.log("Using deployer wallet address: ", wallet.address)
)
console.log('Using deployer wallet address: ', wallet.address)

const l2Provider = new providers.StaticJsonRpcProvider(args.l2ProviderUrl)
const l2Signer = wallet.connect(l2Provider);
const l2Signer = wallet.connect(l2Provider)

console.log('Deploying WETH9 to L2')
const WETH_L2 = await deployWETH9(hre, true, l2Signer)
Expand Down