Skip to content

Commit

Permalink
fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Szegoo committed Aug 28, 2023
1 parent d427b17 commit 1ea1289
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/pages/transfer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/transactionRouter/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/utils/transactionRouter/teleportTransfer.ts
Original file line number Diff line number Diff line change
@@ -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(
Expand Down
3 changes: 1 addition & 2 deletions src/utils/transactionRouter/teleportableRoutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// teleportation.

import { RELAY_CHAIN } from "@/consts";

import AssetRegistry, { Asset } from "../assetRegistry";

export type TeleportableRoute = {
Expand Down Expand Up @@ -142,7 +143,5 @@ export const getTeleportableAssets = (originChainId: number, destChainId: number
&& route.relayChain === RELAY_CHAIN
);

console.log(routes);

return routes.map((route) => route.asset);
}

0 comments on commit 1ea1289

Please sign in to comment.