@@ -18,8 +18,7 @@ describe('common.ts', () => {
1818 testProviders . homestead
1919 ) ( addresses . eth [ 'main' ] . registry ) . lockup ( )
2020 const expected = await expectedLockup ( lockupAddress )
21- const wallet = new ethers . Wallet ( env . mnemonic , testProviders . homestead )
22- const result = await getLockupContract ( wallet )
21+ const result = await getLockupContract ( testProviders . homestead )
2322 expect ( JSON . stringify ( result ) ) . toEqual ( JSON . stringify ( expected ) )
2423 } )
2524 it ( 'provider is ropsten' , async ( ) => {
@@ -28,24 +27,21 @@ describe('common.ts', () => {
2827 addresses . eth [ 'ropsten' ] . registry
2928 ) . lockup ( )
3029 const expected = await expectedLockup ( lockupAddress )
31- const wallet = new ethers . Wallet ( env . mnemonic , testProviders . ropsten )
32- const result = await getLockupContract ( wallet )
30+ const result = await getLockupContract ( testProviders . ropsten )
3331 expect ( JSON . stringify ( result ) ) . toEqual ( JSON . stringify ( expected ) )
3432 } )
3533 it ( 'provider is arbitrum one' , async ( ) => {
3634 const expectedLockup = await createLockupContractL2 ( testProviders . arbOne )
3735 const expected = await expectedLockup ( arbitrumOneLockup )
38- const wallet = new ethers . Wallet ( env . mnemonic , testProviders . arbOne )
39- const result = await getLockupContract ( wallet )
36+ const result = await getLockupContract ( testProviders . arbOne )
4037 expect ( JSON . stringify ( result ) ) . toEqual ( JSON . stringify ( expected ) )
4138 } )
4239 it ( 'provider is arbitrum rinkeby' , async ( ) => {
4340 const expectedLockup = await createLockupContractL2 (
4441 testProviders . arbRinkeby
4542 )
4643 const expected = await expectedLockup ( arbitrumRinkebyLockup )
47- const wallet = new ethers . Wallet ( env . mnemonic , testProviders . arbRinkeby )
48- const result = await getLockupContract ( wallet )
44+ const result = await getLockupContract ( testProviders . arbRinkeby )
4945 expect ( JSON . stringify ( result ) ) . toEqual ( JSON . stringify ( expected ) )
5046 } )
5147 it ( 'use cache' , async ( ) => {
@@ -54,16 +50,14 @@ describe('common.ts', () => {
5450 addresses . eth [ 'ropsten' ] . registry
5551 ) . lockup ( )
5652 const expected = await expectedLockup ( lockupAddress )
57- const wallet = new ethers . Wallet ( env . mnemonic , testProviders . ropsten )
58- const result1 = await getLockupContract ( wallet )
59- const result2 = await getLockupContract ( wallet )
53+ const result1 = await getLockupContract ( testProviders . ropsten )
54+ const result2 = await getLockupContract ( testProviders . ropsten )
6055 expect ( JSON . stringify ( result1 ) ) . toEqual ( JSON . stringify ( expected ) )
6156 expect ( JSON . stringify ( result2 ) ) . toEqual ( JSON . stringify ( expected ) )
6257 } )
6358 it ( 'provider is unknown' , async ( ) => {
6459 const expected = undefined
65- const wallet = new ethers . Wallet ( env . mnemonic , testProviders . polyMumbai )
66- const result = await getLockupContract ( wallet )
60+ const result = await getLockupContract ( testProviders . polyMumbai )
6761 expect ( result ) . toEqual ( expected )
6862 } )
6963 } )
0 commit comments