File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change 1
- import { Web3Provider } from '@ethersproject/providers' ;
2
1
import { warn } from 'loglevel' ;
3
2
import { MINUTE } from '../../../shared/constants/time' ;
4
3
import { MAINNET_CHAIN_ID } from '../../../shared/constants/network' ;
@@ -112,7 +111,6 @@ export default class DetectTokensController {
112
111
: tokenList ;
113
112
114
113
const tokensToDetect = [ ] ;
115
- this . ethersProvider = new Web3Provider ( this . _network . _provider ) ;
116
114
for ( const tokenAddress in tokenListUsed ) {
117
115
if (
118
116
! this . tokenAddresses . find ( ( { address } ) =>
@@ -220,7 +218,6 @@ export default class DetectTokensController {
220
218
return ;
221
219
}
222
220
this . _network = network ;
223
- this . ethersProvider = new Web3Provider ( network . _provider ) ;
224
221
this . _network . store . subscribe ( ( ) => {
225
222
if ( this . chainId !== this . getChainIdFromNetworkStore ( network ) ) {
226
223
this . restartTokenDetection ( ) ;
You can’t perform that action at this time.
0 commit comments