File tree Expand file tree Collapse file tree 4 files changed +220
-355
lines changed Expand file tree Collapse file tree 4 files changed +220
-355
lines changed Original file line number Diff line number Diff line change 38
38
"dependencies" : {
39
39
"@ethereumjs/common" : " ^2.3.1" ,
40
40
"@ethereumjs/tx" : " ^3.2.1" ,
41
+ "@ethersproject/abi" : " ^5.7.0" ,
42
+ "@ethersproject/contracts" : " ^5.7.0" ,
43
+ "@ethersproject/providers" : " ^5.7.0" ,
41
44
"@keystonehq/metamask-airgapped-keyring" : " ^0.3.0" ,
42
45
"@metamask/contract-metadata" : " ^1.35.0" ,
43
46
"@metamask/metamask-eth-abis" : " 3.0.0" ,
57
60
"eth-sig-util" : " ^3.0.0" ,
58
61
"ethereumjs-util" : " ^7.0.10" ,
59
62
"ethereumjs-wallet" : " ^1.0.1" ,
60
- "ethers" : " ^5.4.1" ,
61
63
"ethjs-unit" : " ^0.1.6" ,
62
64
"fast-deep-equal" : " ^3.1.3" ,
63
65
"immer" : " ^9.0.6" ,
Original file line number Diff line number Diff line change 1
1
import { abiERC20 } from '@metamask/metamask-eth-abis' ;
2
2
import { BN , toUtf8 } from 'ethereumjs-util' ;
3
- import { AbiCoder } from 'ethers/lib/utils ' ;
3
+ import { AbiCoder } from '@ethersproject/abi ' ;
4
4
import { ERC20 } from '../../constants' ;
5
5
import { Web3 } from './standards-types' ;
6
6
Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ import contractsMap from '@metamask/contract-metadata';
3
3
import { abiERC721 } from '@metamask/metamask-eth-abis' ;
4
4
import { v1 as random } from 'uuid' ;
5
5
import { Mutex } from 'async-mutex' ;
6
- import { ethers , Contract } from 'ethers' ;
6
+ import { Contract } from '@ethersproject/contracts' ;
7
+ import { Web3Provider } from '@ethersproject/providers' ;
7
8
import { AbortController } from 'abort-controller' ;
8
9
import { BaseController , BaseConfig , BaseState } from '../BaseController' ;
9
10
import type { PreferencesState } from '../user/PreferencesController' ;
@@ -242,7 +243,7 @@ export class TokensController extends BaseController<
242
243
}
243
244
244
245
_instantiateNewEthersProvider ( ) : any {
245
- return new ethers . providers . Web3Provider ( this . config ?. provider ) ;
246
+ return new Web3Provider ( this . config ?. provider ) ;
246
247
}
247
248
248
249
/**
You can’t perform that action at this time.
0 commit comments