Skip to content

Commit

Permalink
update asset namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
kaladinlight committed Oct 14, 2024
1 parent eec4e59 commit ffa6013
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/chain-adapters/src/solana/SolanaChainAdapter.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import type { AssetId, ChainId } from '@shapeshiftoss/caip'
import { ASSET_REFERENCE, solanaChainId, solAssetId, toAssetId } from '@shapeshiftoss/caip'
import {
ASSET_NAMESPACE,
ASSET_REFERENCE,
solanaChainId,
solAssetId,
toAssetId,
} from '@shapeshiftoss/caip'
import type { SolanaSignTx } from '@shapeshiftoss/hdwallet-core'
import { supportsSolana } from '@shapeshiftoss/hdwallet-core'
import type { BIP44Params } from '@shapeshiftoss/types'
Expand Down Expand Up @@ -135,7 +141,7 @@ export class ChainAdapter implements IChainAdapter<KnownChainIds.SolanaMainnet>
tokens: data.tokens.map(token => ({
assetId: toAssetId({
chainId: this.chainId,
assetNamespace: 'spl',
assetNamespace: ASSET_NAMESPACE.splToken,
assetReference: token.id,
}),
balance: token.balance,
Expand Down

0 comments on commit ffa6013

Please sign in to comment.