diff --git a/src/pages/transfer.tsx b/src/pages/transfer.tsx index c7c3163..aa6f052 100644 --- a/src/pages/transfer.tsx +++ b/src/pages/transfer.tsx @@ -19,14 +19,14 @@ import AssetRegistry, { Asset } from '@/utils/assetRegistry'; import IdentityKey from '@/utils/identityKey'; import KeyStore from '@/utils/keyStore'; import TransactionRouter, { isTeleport } from '@/utils/transactionRouter'; +import { getTeleportableAssets } from '@/utils/transactionRouter/teleportableRoutes'; +import { Fungible } from '@/utils/transactionRouter/types'; import { chainsSupportingXcmExecute, RELAY_CHAIN } from '@/consts'; import { useRelayApi } from '@/contexts/RelayApi'; import { useToast } from '@/contexts/Toast'; import { useIdentity } from '@/contracts'; import { useAddressBook } from '@/contracts/addressbook/context'; -import { getTeleportableAssets } from '@/utils/transactionRouter/teleportableRoutes'; -import { Fungible } from '@/utils/transactionRouter/types'; const TransferPage = () => { const { diff --git a/src/utils/transactionRouter/index.ts b/src/utils/transactionRouter/index.ts index ce4ce7a..ab28f7b 100644 --- a/src/utils/transactionRouter/index.ts +++ b/src/utils/transactionRouter/index.ts @@ -2,7 +2,7 @@ import { ApiPromise } from "@polkadot/api"; import { Signer } from "@polkadot/types/types"; import ReserveTransfer from "./reserveTransfer"; -import { TeleportableRoute, teleportableRoutes } from "./teleportableRoutes"; +import { teleportableRoutes } from "./teleportableRoutes"; import TeleportTransfer from "./teleportTransfer"; import TransferAsset from "./transferAsset"; import { Fungible, Receiver, Sender, TransferRpcApis } from "./types"; diff --git a/src/utils/transactionRouter/teleportTransfer.ts b/src/utils/transactionRouter/teleportTransfer.ts index 82f8c56..d2aa36a 100644 --- a/src/utils/transactionRouter/teleportTransfer.ts +++ b/src/utils/transactionRouter/teleportTransfer.ts @@ -1,10 +1,10 @@ import { ApiPromise } from "@polkadot/api"; import { KeyringPair } from "@polkadot/keyring/types"; +import { Signer } from "@polkadot/types/types"; import { getDestination, getMultiAsset, getTransferBeneficiary } from "."; import { Fungible, Receiver } from "./types"; import { getParaId } from ".."; -import { Signer } from "@polkadot/types/types"; class TeleportTransfer { public static async send( diff --git a/src/utils/transactionRouter/teleportableRoutes.ts b/src/utils/transactionRouter/teleportableRoutes.ts index 4220559..7303fc9 100644 --- a/src/utils/transactionRouter/teleportableRoutes.ts +++ b/src/utils/transactionRouter/teleportableRoutes.ts @@ -2,6 +2,7 @@ // teleportation. import { RELAY_CHAIN } from "@/consts"; + import AssetRegistry, { Asset } from "../assetRegistry"; export type TeleportableRoute = { @@ -142,7 +143,5 @@ export const getTeleportableAssets = (originChainId: number, destChainId: number && route.relayChain === RELAY_CHAIN ); - console.log(routes); - return routes.map((route) => route.asset); }