Skip to content

Commit

Permalink
s/devnet_config_file/config_file
Browse files Browse the repository at this point in the history
  • Loading branch information
norswap committed Sep 28, 2023
1 parent 94b2d07 commit ea867c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions roll.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,15 +218,15 @@ def load_config() -> Config:
"Missing dependencies. Try running python roll.py setup first.")
if os.path.exists(lib.args.config_path):
with open(lib.args.config_path, mode="rb") as f:
devnet_config_file = tomli.load(f)
config_file = tomli.load(f)
else:
raise Exception(f"Cannot find config file at {lib.args.config_path}")

try:
for key, value in devnet_config_file.items():
for key, value in config_file.items():
if hasattr(config, key):
setattr(config, key, value)
if devnet_config_file.get("batching_inbox_address") is None:
if config_file.get("batching_inbox_address") is None:
# Derive a unique batch inbox address from the chain id.
addr = "0xff69000000000000000000000000000000000000"
str_id = str(config.l2_chain_id)
Expand All @@ -248,7 +248,7 @@ def load_config() -> Config:
]

for option in recommended_options:
if devnet_config_file.get(option) is None:
if config_file.get(option) is None:
print(f"Warning: config file does not specify `{option}`.\n"
"It is highly recommended to specify this option, "
"especially for non-local deployments.")
Expand Down

0 comments on commit ea867c3

Please sign in to comment.