(asset: Asset, key: string)
| 8 | import { AddressFormat, BlockchainType } from '~/types/chain.types'; |
| 9 | |
| 10 | export function getAssetMetadata(asset: Asset, key: string): string | undefined { |
| 11 | return asset.metadata.find(m => m.key === key)?.value; |
| 12 | } |
| 13 | |
| 14 | export function detectAddressFormat(blockchain: string, address: string): string | undefined { |
| 15 | switch (blockchain) { |