Skip to content

Commit

Permalink
Make XCM test script more configurable (#522)
Browse files Browse the repository at this point in the history
  • Loading branch information
vgeddes authored and alistair-singh committed Apr 21, 2022
1 parent f242474 commit e0f57c0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions test/scripts/make-xcm-transfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,14 @@ const createTransferXcm = (

let main = async () => {
const argv = yargs.options({
"key-uri": { type: "string", demandOption: true },
"para-id": { type: "number", demandOption: true },
recipient: { type: "string", demandOption: true },
amount: { type: "number", demandOption: true },
"api": { type: "string", demandOption: true, describe: "API endpoint of source parachain" },
"key-uri": { type: "string", demandOption: true, describe: "Account key for sending extrinsic" },
"para-id": { type: "number", demandOption: true, describe: "Destination parachain" },
recipient: { type: "string", demandOption: true, describe: "Destination account" },
amount: { type: "number", demandOption: true, describe: "Amount to transfer" },
}).argv as any;

let provider = new WsProvider("ws://127.0.0.1:11144");
let provider = new WsProvider(argv.api);

let api = await ApiPromise.create({
provider,
Expand Down

0 comments on commit e0f57c0

Please sign in to comment.