Commit 628affc7 authored by Mark Tyneway's avatar Mark Tyneway Committed by GitHub

ops: fund deployer accounts for local deployment (#3576)

This will make it easier to test the e2e nft deployment
scripts.
Co-authored-by: default avatarmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent 3d4e8529
---
'@eth-optimism/contracts': patch
---
Add prefunded accounts to L2 genesis when doing local network
......@@ -28,6 +28,30 @@ const deployFn: DeployFunction = async (hre) => {
defaultHardhatNetworkHdAccountsConfigParams
).slice(0, 20)
// Set balances on L1 for the predeploy deployers
// 0xa961b0d6dce82db098cf70a42a14add3ee3db2d5
await hre.network.provider.send('hardhat_setBalance', [
'0xa961b0d6dce82db098cf70a42a14add3ee3db2d5',
'0x8000000000000000000000',
])
accounts.push({
privateKey:
'0xa6aecc98b63bafb0de3b29ae9964b14acb4086057808be29f90150214ebd4a0f',
balance: '',
})
// 0xdfc82d475833a50de90c642770f34a9db7deb725
await hre.network.provider.send('hardhat_setBalance', [
'0xdfc82d475833a50de90c642770f34a9db7deb725',
'0x8000000000000000000000',
])
accounts.push({
privateKey:
'0x3b8d2345102cce2443acb240db6e87c8edd4bb3f821b17fab8ea2c9da08ea132',
balance: '',
})
// Fund the accounts in parallel to speed things up.
await Promise.all(
accounts.map(async (account, index) => {
......
......@@ -7,12 +7,13 @@ import * as mkdirp from 'mkdirp'
import { ethers } from 'ethers'
import { task } from 'hardhat/config'
import { remove0x } from '@eth-optimism/core-utils'
import '@eth-optimism/hardhat-deploy-config'
import { predeploys } from '../src/predeploys'
import { getContractFromArtifact } from '../src/deploy-utils'
import { names } from '../src/address-names'
task('take-dump').setAction(async (args, hre) => {
task('take-dump').setAction(async ({}, hre) => {
/* eslint-disable @typescript-eslint/no-var-requires */
// Needs to be imported here or hardhat will throw a fit about hardhat being imported from
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment