Skip to content

Commit 921da2c

Browse files
author
amerkadicE
committed
Remove unused ethers provider
1 parent 14a33c2 commit 921da2c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

app/scripts/controllers/detect-tokens.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Web3Provider } from '@ethersproject/providers';
21
import { warn } from 'loglevel';
32
import { MINUTE } from '../../../shared/constants/time';
43
import { MAINNET_CHAIN_ID } from '../../../shared/constants/network';
@@ -112,7 +111,6 @@ export default class DetectTokensController {
112111
: tokenList;
113112

114113
const tokensToDetect = [];
115-
this.ethersProvider = new Web3Provider(this._network._provider);
116114
for (const tokenAddress in tokenListUsed) {
117115
if (
118116
!this.tokenAddresses.find(({ address }) =>
@@ -220,7 +218,6 @@ export default class DetectTokensController {
220218
return;
221219
}
222220
this._network = network;
223-
this.ethersProvider = new Web3Provider(network._provider);
224221
this._network.store.subscribe(() => {
225222
if (this.chainId !== this.getChainIdFromNetworkStore(network)) {
226223
this.restartTokenDetection();

0 commit comments

Comments
 (0)