Skip to content

Commit

Permalink
Merge pull request #177 from HugoByte/fix/test--update-test-script-to…
Browse files Browse the repository at this point in the history
…-handle-new-changes-in-config.json

test: update test script to handle new changes in config.json
  • Loading branch information
Mr-Nobody21 authored Jan 11, 2024
2 parents 0ce8f5c + 57416e6 commit 9c1ada4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions testdata/generate_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9c1ada4

Please sign in to comment.