mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 14:31:02 +00:00
d4d34a39d2
* [benchmarks] pr with weights * bump zombienet version (#2525) * bump zombienet version * fix para registration args --------- Co-authored-by: paritytech-ci <paritytech-ci@parity.io> Co-authored-by: Javier Viola <javier@parity.io>
21 lines
534 B
JavaScript
21 lines
534 B
JavaScript
async function run(nodeName, networkInfo, args) {
|
|
const paraIdStr = args[0];
|
|
const para = networkInfo.paras[paraIdStr];
|
|
const relayNode = networkInfo.relay[0];
|
|
|
|
const registerParachainOptions = {
|
|
id: parseInt(paraIdStr,10),
|
|
wasmPath: para.wasmPath,
|
|
statePath: para.statePath,
|
|
apiUrl: relayNode.wsUri,
|
|
onboardAsParachain: true,
|
|
seed: "//Alice",
|
|
finalization: true
|
|
};
|
|
|
|
|
|
await zombie.registerParachain(registerParachainOptions);
|
|
}
|
|
|
|
module.exports = { run }
|