From b9d82ddf0541f1740911856cd51b9a82540bfec4 Mon Sep 17 00:00:00 2001 From: Kieran Prasch Date: Wed, 27 Sep 2023 15:07:20 +0200 Subject: [PATCH] internalize registry success message into registry_from_ape_deployments. --- deployment/registry.py | 2 +- scripts/lynx/deploy_child.py | 6 +----- scripts/lynx/deploy_root.py | 6 +----- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/deployment/registry.py b/deployment/registry.py index 79f533c3..813219a5 100644 --- a/deployment/registry.py +++ b/deployment/registry.py @@ -125,7 +125,7 @@ def registry_from_ape_deployments( registry_data.append(entry) output_filepath = write_registry(data=registry_data, filepath=output_filepath) - + print(f"(i) Registry written to {output_filepath}!") return output_filepath diff --git a/scripts/lynx/deploy_child.py b/scripts/lynx/deploy_child.py index 275ceef5..63981233 100644 --- a/scripts/lynx/deploy_child.py +++ b/scripts/lynx/deploy_child.py @@ -56,10 +56,6 @@ def main(): global_allow_list, ] - output_filepath = registry_from_ape_deployments( - deployments=deployments, output_filepath=REGISTRY_FILEPATH - ) - print(f"(i) Registry written to {output_filepath}!") - + registry_from_ape_deployments(deployments=deployments, output_filepath=REGISTRY_FILEPATH) if VERIFY: verify_contracts(contracts=deployments) diff --git a/scripts/lynx/deploy_root.py b/scripts/lynx/deploy_root.py index f5c74008..65c88157 100644 --- a/scripts/lynx/deploy_root.py +++ b/scripts/lynx/deploy_root.py @@ -54,10 +54,6 @@ def main(): mock_polygon_root, ] - output_filepath = registry_from_ape_deployments( - deployments=deployments, output_filepath=REGISTRY_FILEPATH - ) - print(f"(i) Registry written to {output_filepath}!") - + registry_from_ape_deployments(deployments=deployments, output_filepath=REGISTRY_FILEPATH) if VERIFY: verify_contracts(contracts=deployments)