Skip to content

Commit

Permalink
fix: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
NeOMakinG committed Sep 25, 2024
1 parent 08737db commit 633e3bf
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/caip/src/adapters/coingecko/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ describe('adapters:coingecko', () => {
expect(coingeckoToAssetIds('cosmos')).toEqual([atomOnCosmos, atomOnBsc])
})

it('can get AssetIds for USD Coin on EVM Chains', () => {
it('can get AssetIds for USD Coin on chains using coingecko', () => {
const chainNamespace = CHAIN_NAMESPACE.Evm
const assetNamespace = 'erc20'
const usdcOnEthereum = toAssetId({
Expand Down Expand Up @@ -163,13 +163,20 @@ describe('adapters:coingecko', () => {
assetNamespace,
assetReference: '0x833589fcd6edb6e08f4c7c32d4f71b54bda02913',
})
const usdcOnSolana = toAssetId({
chainNamespace: CHAIN_NAMESPACE.Solana,
chainReference: CHAIN_REFERENCE.SolanaMainnet,
assetNamespace: 'spl',
assetReference: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v',
})
expect(coingeckoToAssetIds('usd-coin')).toEqual([
usdcOnEthereum,
usdcOnAvalanche,
usdcOnOptimism,
usdcOnPolygon,
usdcOnArbitrum,
usdcOnBase,
usdcOnSolana,
])
})
it('can get AssetIds for bridged USD Coin on EVM Chains', () => {
Expand Down

0 comments on commit 633e3bf

Please sign in to comment.