From 3fa300813e6db9d5d51ae35dce0adf10b5eb4d66 Mon Sep 17 00:00:00 2001 From: clearloop Date: Thu, 8 Jul 2021 06:45:21 +0800 Subject: [PATCH] ci(e2e): fix the arguments of add_asset in e2e test --- js/e2e/index.ts | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/js/e2e/index.ts b/js/e2e/index.ts index 14a76e414c..0702fc0a74 100644 --- a/js/e2e/index.ts +++ b/js/e2e/index.ts @@ -10,7 +10,7 @@ const BALANCE_THOUSAND: number = 100000000000; const VOTING_PERIOD: number = 10; const TESTS = (api: ApiPromise, config: ExtrinsicConfig): Extrinsic[] => { - const ROCOCO_AND_STATEMINT = api.createType("MultiLocation", { + const ROCOCO = api.createType("MultiLocation", { // NOTE: // // The current XCMRouter in PINT only supports X1 @@ -38,14 +38,7 @@ const TESTS = (api: ApiPromise, config: ExtrinsicConfig): Extrinsic[] => { signed: config.alice, pallet: "assetIndex", call: "addAsset", - args: [ - ASSET_ID_A, - 1000000, - api.createType("AssetAvailability" as any, { - Liquid: ROCOCO_AND_STATEMINT, - }), - 1000000, - ], + args: [ASSET_ID_A, 1000000, ROCOCO, 1000000], verify: async () => { assert( ((await api.query.assetIndex.assets(ASSET_ID_A)) as any)