From 0942a03a3a368d3ea76b64d738825349f9be06da Mon Sep 17 00:00:00 2001 From: Jaco Date: Wed, 2 Jun 2021 16:54:29 +0300 Subject: [PATCH] Adjust teleport weights for XCM (#5416) --- packages/page-parachains/src/Teleport.tsx | 4 +--- packages/react-hooks/src/useTeleport.ts | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/page-parachains/src/Teleport.tsx b/packages/page-parachains/src/Teleport.tsx index 43b627dfa4..e979323c91 100644 --- a/packages/page-parachains/src/Teleport.tsx +++ b/packages/page-parachains/src/Teleport.tsx @@ -16,7 +16,7 @@ interface Props { } const INVALID_PARAID = Number.MAX_SAFE_INTEGER; -const DEFAULT_WEIGHT = 1_000_000_000; +const DEFAULT_WEIGHT = 100_000_000; // 30_000_000 as per the code, add a margin function Teleport ({ onClose }: Props): React.ReactElement | null { const { t } = useTranslation(); @@ -52,8 +52,6 @@ function Teleport ({ onClose }: Props): React.ReactElement | null { [amount, isParachain, recipientId, recipientParaId, weight] ); - console.log('Teleport', allowTeleport, chainOpts); - if (!allowTeleport || !chainOpts.length) { return null; } diff --git a/packages/react-hooks/src/useTeleport.ts b/packages/react-hooks/src/useTeleport.ts index 9a0da5cdc7..18869489e6 100644 --- a/packages/react-hooks/src/useTeleport.ts +++ b/packages/react-hooks/src/useTeleport.ts @@ -87,7 +87,5 @@ export function useTeleport (): Teleport { } }, [apiUrl, chainParaId]); - console.log('useTeleport', JSON.stringify(state)); - return state; }