Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Szegoo committed May 8, 2024
1 parent 8e0375e commit ac4ff0e
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions e2e_tests/xc-transfer/region-transfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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<void> {
Expand Down

0 comments on commit ac4ff0e

Please sign in to comment.