From ac4ff0e0a186a44c38c0b045196a6d5bf1fdd342 Mon Sep 17 00:00:00 2001 From: Sergej Date: Wed, 8 May 2024 15:51:53 +0200 Subject: [PATCH] small fixes --- e2e_tests/xc-transfer/region-transfer.ts | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/e2e_tests/xc-transfer/region-transfer.ts b/e2e_tests/xc-transfer/region-transfer.ts index 00740f20..4278f38e 100644 --- a/e2e_tests/xc-transfer/region-transfer.ts +++ b/e2e_tests/xc-transfer/region-transfer.ts @@ -28,6 +28,7 @@ async function run(_nodeName: any, networkInfo: any, _jsArgs: any) { await openHrmpChannel(alice, rococoApi, 1005, 2000); await openHrmpChannel(alice, rococoApi, 2000, 1005); + // Needed for fee payment await transferRelayAssetToPara(10n**12n, 2000, rococoApi, alice); await transferRelayAssetToPara(10n**12n, 1005, rococoApi, alice); @@ -169,16 +170,7 @@ async function openHrmpChannel(signer: KeyringPair, relayApi: ApiPromise, sender const openHrmp = relayApi.tx.parasSudoWrapper.sudoEstablishHrmpChannel(...newHrmpChannel); const sudoCall = relayApi.tx.sudo.sudo(openHrmp); - const callTx = async (resolve: any) => { - const unsub = await sudoCall.signAndSend(signer, (result) => { - if (result.status.isInBlock) { - unsub(); - resolve(); - } - }); - }; - - return new Promise(callTx); + return submitExtrinsic(signer, sudoCall, {}); } async function configureBroker(coretimeApi: ApiPromise, signer: KeyringPair): Promise {