Skip to content

Commit 9d3f531

Browse files
committed
fix (test)
1 parent 805d4ee commit 9d3f531

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

test/ns.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ UTest({
2626
eq_(urlRecord, 'https://vitalik.ca');
2727

2828
let { value: contentHash } = await ns.getContent('vitalik.eth');
29-
eq_(contentHash, `ipfs://QmaZhzj4Sf8yGRJAvWXorLSjrgFuMptDASsfDTpfFRRGJm`);
29+
eq_(contentHash, `ipfs://QmQLCUE7kZJ6cHpA8B2YUfHUJkCTNDVE6FUyPZqVwC4d5D`);
3030
},
3131
async 'reverse registrar' () {
3232
let ns = new NameService(Web3ClientFactory.get('eth'));

test/token.spec.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
import { TokensService } from '@dequanto/tokens/TokensService';
22
import { TokensServiceFactory } from '@dequanto/tokens/TokensServiceFactory';
3-
import { $address } from '@dequanto/utils/$address';
43

54
UTest({
65
async 'should load token data' () {
76
let service = new TokensService('eth');
87
let usdc = await service.getKnownToken('USDC');
98
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');
1211
},
1312
async 'should load token by forked mainnet via hardhat' () {
1413
let tokens = await TokensServiceFactory.getAsync('hh:eth');
1514
let usdc = await tokens.getKnownToken('USDC');
16-
eq_(usdc.address, $address.toChecksum('0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'));
15+
eq_(usdc.address.toLowerCase(), '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48');
1716
}
1817
})

0 commit comments

Comments
 (0)