From 6db943a4a94c7de59bb07bf4f399a63568aaed72 Mon Sep 17 00:00:00 2001 From: Jaco Date: Fri, 24 Sep 2021 08:00:09 +0300 Subject: [PATCH] Adjust base xcm weights (all now like Kusama) (#6186) --- packages/apps-config/src/api/params/teleport.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/apps-config/src/api/params/teleport.ts b/packages/apps-config/src/api/params/teleport.ts index 355c182e18..d00c3115b3 100644 --- a/packages/apps-config/src/api/params/teleport.ts +++ b/packages/apps-config/src/api/params/teleport.ts @@ -3,17 +3,15 @@ import type { ApiPromise } from '@polkadot/api'; -import { KUSAMA_GENESIS, WESTEND_GENESIS } from '../constants'; +import { KUSAMA_GENESIS } from '../constants'; // 3 * BaseXcmWeight on Kusama const KUSAMA_WEIGHT = 3 * 1_000_000_000; -// On Rococo this is lower (3 * 100_000), but non-failing with the higher Kusama weights const DEFAULT_WEIGHT = KUSAMA_WEIGHT; const KNOWN_WEIGHTS: Record = { - [KUSAMA_GENESIS]: KUSAMA_WEIGHT, - [WESTEND_GENESIS]: 3 * 10_000_000 + [KUSAMA_GENESIS]: KUSAMA_WEIGHT }; export function getTeleportWeight (api: ApiPromise): number {