Skip to content

Commit

Permalink
test: update python script to handle change in config
Browse files Browse the repository at this point in the history
  • Loading branch information
hemz10 committed Dec 4, 2023
1 parent 91e7173 commit de35644
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions testdata/generate_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ def update_config(original_config, relay_chain, para_chain, network):
config_data["chain-type"] = "local"
config_data["relaychain"]["name"] = relay_chain

name = next(iter(config_data["para"].keys()))
for para in config_data["para"]:
para["name"] = para_chain

config_data["para"][para_chain] = config_data["para"].pop(name)
# config_data["para"][para_chain] = config_data["para"].pop(name)
updated_config = json.dumps(config_data, indent=2)

# Optionally, save the updated config to a new file
Expand Down

0 comments on commit de35644

Please sign in to comment.