Skip to content

Commit

Permalink
fix: last cleanup?
Browse files Browse the repository at this point in the history
  • Loading branch information
gomesalexandre committed Jan 28, 2025
1 parent 5b01ad4 commit cfeddbe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/constants/caip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ export const CHAIN_NAMESPACE = {
export const CHAIN_REFERENCE = {
EthereumMainnet: '1',
BitcoinMainnet: '000000000019d6689c085ae165831e93',
ArbitrumMainnet: '42161', // https://chainlist.org/chain/42161
ArbitrumNovaMainnet: '42170', // https://chainlist.org/chain/42170
BaseMainnet: '8453', // https://chainlist.org/chain/8453
SolanaMainnet: '5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp', // https://namespaces.chainagnostic.org/solana/caip2
ArbitrumMainnet: '42161',
ArbitrumNovaMainnet: '42170',
BaseMainnet: '8453',
SolanaMainnet: '5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp',
} as const

export const ASSET_NAMESPACE = {
Expand Down
4 changes: 1 addition & 3 deletions src/queries/chainflip/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ const chainflipToAssetId: Record<string, string> = {
}

export const transformChainflipAssets = (data: ChainflipAssetsResponse) => {
return data.assets
.map(asset => chainflipToAssetId[asset.id])
.filter((assetId): assetId is string => Boolean(assetId))
return data.assets.map(asset => chainflipToAssetId[asset.id]).filter(Boolean)
}

export const useChainflipAssetsQuery = () => {
Expand Down

0 comments on commit cfeddbe

Please sign in to comment.