Files
pezkuwi-subxt/cumulus/zombienet/tests/register-para.js
T
Sebastian Kunert 9a3e518e5c Add example zombienet network file and instructions (#1839)
* Add simple example on how to spin up network.

* Update readme

* Remove unnecessary prefix

* Improve folder structure

* Add link to file

* Fix paths in readme

* Update README.md

Co-authored-by: Bastian Köcher <git@kchr.de>

Co-authored-by: Bastian Köcher <git@kchr.de>
2022-11-08 18:26:20 +00:00

10 lines
325 B
JavaScript

async function run(nodeName, networkInfo, args) {
const paraIdStr = args[0];
const para = networkInfo.paras[paraIdStr];
const relayNode = networkInfo.relay[0];
await zombie.registerParachain(parseInt(paraIdStr,10),para.wasmPath, para.statePath, relayNode.wsUri, "//Alice", true);
}
module.exports = { run }