File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ UTest({
26
26
eq_ ( urlRecord , 'https://vitalik.ca' ) ;
27
27
28
28
let { value : contentHash } = await ns . getContent ( 'vitalik.eth' ) ;
29
- eq_ ( contentHash , `ipfs://QmaZhzj4Sf8yGRJAvWXorLSjrgFuMptDASsfDTpfFRRGJm ` ) ;
29
+ eq_ ( contentHash , `ipfs://QmQLCUE7kZJ6cHpA8B2YUfHUJkCTNDVE6FUyPZqVwC4d5D ` ) ;
30
30
} ,
31
31
async 'reverse registrar' ( ) {
32
32
let ns = new NameService ( Web3ClientFactory . get ( 'eth' ) ) ;
Original file line number Diff line number Diff line change 1
1
import { TokensService } from '@dequanto/tokens/TokensService' ;
2
2
import { TokensServiceFactory } from '@dequanto/tokens/TokensServiceFactory' ;
3
- import { $address } from '@dequanto/utils/$address' ;
4
3
5
4
UTest ( {
6
5
async 'should load token data' ( ) {
7
6
let service = new TokensService ( 'eth' ) ;
8
7
let usdc = await service . getKnownToken ( 'USDC' ) ;
9
8
eq_ ( usdc . decimals , 6 ) ;
10
- eq_ ( usdc . name , 'USDCoin ' ) ;
11
- eq_ ( usdc . address , $address . toChecksum ( '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48' ) ) ;
9
+ eq_ ( usdc . name , 'USD Coin ' ) ;
10
+ eq_ ( usdc . address . toLowerCase ( ) , '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48' ) ;
12
11
} ,
13
12
async 'should load token by forked mainnet via hardhat' ( ) {
14
13
let tokens = await TokensServiceFactory . getAsync ( 'hh:eth' ) ;
15
14
let usdc = await tokens . getKnownToken ( 'USDC' ) ;
16
- eq_ ( usdc . address , $address . toChecksum ( '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48' ) ) ;
15
+ eq_ ( usdc . address . toLowerCase ( ) , '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48' ) ;
17
16
}
18
17
} )
You can’t perform that action at this time.
0 commit comments