From 57416e61e1222424856d0a274ba624be7425eee6 Mon Sep 17 00:00:00 2001 From: hemz10 Date: Thu, 11 Jan 2024 12:00:55 +0530 Subject: [PATCH] test: update test script to handle new changes in config.json --- testdata/generate_json.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/testdata/generate_json.py b/testdata/generate_json.py index a9fe058..eeab96e 100644 --- a/testdata/generate_json.py +++ b/testdata/generate_json.py @@ -8,17 +8,17 @@ def update_config(original_config, relay_chain, para_chain, network): config_data = json.load(file) if network == "testnet": - config_data["chain-type"] = "testnet" + config_data["chain_type"] = "testnet" config_data["relaychain"]["name"] = "rococo" elif network == "mainnet": - config_data["chain-type"] = "mainnet" + config_data["chain_type"] = "mainnet" config_data["relaychain"]["name"] = relay_chain.lower() else: # Update the original JSON data - config_data["chain-type"] = "local" - config_data["relaychain"]["name"] = relay_chain + config_data["chain_type"] = "local" + config_data["relaychain"]["name"] = "rococo-local" - for para in config_data["para"]: + for para in config_data["parachains"]: para["name"] = para_chain # config_data["para"][para_chain] = config_data["para"].pop(name)