From 6aef53c88c188c72408ee23a682d783b8d1ccaff Mon Sep 17 00:00:00 2001 From: riyasng12 Date: Thu, 18 Jan 2024 19:01:47 +0530 Subject: [PATCH] fix: fixed parachain id edit in build spec for local net --- package_io/constant.star | 2 +- parachain/build-spec.star | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package_io/constant.star b/package_io/constant.star index 01f4d81..e65767a 100644 --- a/package_io/constant.star +++ b/package_io/constant.star @@ -22,7 +22,7 @@ DIFFERENT_IMAGES_FOR_TESTNET = { "acala": "acala/mandala-node:latest", } -CHAIN_COMMAND = ["manta", "moonsama", "interlay", "kintsugi-btc", "polkadex", "centrifuge", "altair", "robonomics", "kilt"] +CHAIN_COMMAND = ["manta", "moonsama", "interlay", "kintsugi-btc", "polkadex", "centrifuge", "altair", "robonomics", "kilt", "mangata"] KUSAMA_PARACHAINS = ["altair", "bajun", "bifrost", "calamari", "encointer", "karura", "khala", "kintsugi-btc", "litmus", "mangata", "moonriver", "robonomics", "subzero", "turing"] POLKADOT_PARACHAINS = ["acala", "ajuna", "bifrost", "centrifuge", "clover", "frequency", "integritee", "interlay", "kilt", "kylin", "litentry", "manta", "moonbeam", "moonsama", "nodle", "parallel", "pendulum", "phala", "polkadex", "subsocial", "zeitgeist"] diff --git a/parachain/build-spec.star b/parachain/build-spec.star index 5f5a679..ccaf4f0 100644 --- a/parachain/build-spec.star +++ b/parachain/build-spec.star @@ -11,7 +11,7 @@ def create_parachain_build_spec_with_para_id(plan, image, binary, chain_name, ch command = ExecRecipe(command = [ "/bin/sh", "-c", - "sed -e 's/\"parachainId\": *[0-9]\\+/\"parachainId\": {0}/' -e 's/\"para_id\": [0-9]*,/\"para_id\": {0},/' -e 's/\"paraId\": [0-9]*,/\"paraId\": {0},/' /build/{1}.json > /tmp/{1}.json".format(para_id, chain_name), + "sed -e 's/\"parachainId\": *[0-9]\\+/\"parachainId\": {0}/' -e 's/\"para_id\": [0-9]*,/\"para_id\": {0},/' -e 's/\"paraId\": [0-9]*,/\"paraId\": {0},/' -e 's/\"parachain_id\": [0-9]*,/\"parachain_id\": {0},/' /build/{1}.json > /tmp/{1}.json".format(para_id, chain_name), ]) build_spec.create_edit_and_build_spec(plan, chain_name + "edit", constant.CURL_JQ_IMAGE, chain_name, command, chain_name + "plain") raw_service = create_raw_build_spec_genisis_state_genisis_wasm(plan, binary, image, chain_name, chain_name + "edit") @@ -46,6 +46,6 @@ def create_raw_build_spec_genisis_state_genisis_wasm(plan, binary, image, chain_ plan.verify(result["code"], "==", 0) plan.store_service_files(service_name = chain_name + "raw", src = "/tmp/*", name = chain_name + "raw") - plan.stop_service(chain_name + "raw") + # plan.stop_service(chain_name + "raw") return raw_service