11import { expect } from './shared/setup'
22
33/* Imports: External */
4- import { Contract , ContractFactory , Wallet , utils } from 'ethers'
4+ import { Contract , Wallet , utils } from 'ethers'
5+ import { ethers } from 'hardhat'
56
67/* Imports: Internal */
78import { OptimismEnv } from './shared/env'
@@ -16,7 +17,6 @@ import {
1617} from './shared/stress-test-helpers'
1718
1819/* Imports: Artifacts */
19- import simpleStorageJson from '../artifacts/contracts/SimpleStorage.sol/SimpleStorage.json'
2020import { fundUser , isLiveNetwork , isMainnet } from './shared/utils'
2121
2222// Need a big timeout to allow for all transactions to be processed.
@@ -60,14 +60,12 @@ describe('stress tests', () => {
6060 let L2SimpleStorage : Contract
6161 let L1SimpleStorage : Contract
6262 beforeEach ( async ( ) => {
63- const factory__L1SimpleStorage = new ContractFactory (
64- simpleStorageJson . abi ,
65- simpleStorageJson . bytecode ,
63+ const factory__L1SimpleStorage = await ethers . getContractFactory (
64+ 'SimpleStorage' ,
6665 env . l1Wallet
6766 )
68- const factory__L2SimpleStorage = new ContractFactory (
69- simpleStorageJson . abi ,
70- simpleStorageJson . bytecode ,
67+ const factory__L2SimpleStorage = await ethers . getContractFactory (
68+ 'SimpleStorage' ,
7169 env . l2Wallet
7270 )
7371 L1SimpleStorage = await factory__L1SimpleStorage . deploy ( )
0 commit comments