From 0da44de283da220133e45f95f9052af99b7966ea Mon Sep 17 00:00:00 2001 From: moreal Date: Thu, 28 Nov 2024 10:35:36 +0900 Subject: [PATCH] fix: translate file_name to network_name --- scripts/app/update_apv.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/app/update_apv.py b/scripts/app/update_apv.py index fd9edb5c..0ce59d36 100644 --- a/scripts/app/update_apv.py +++ b/scripts/app/update_apv.py @@ -125,7 +125,8 @@ def update_apv(contents: str, apv: Apv): def check_correct_signer(dir_name:str, file_name: str): if "9c-main" in dir_name: - assert config.key_address == MAIN_SIGNERS[file_name] + network_name = "odin" if file_name == "9c-network" else file_name + assert config.key_address == MAIN_SIGNERS[network_name] def generate_apv(planet: Planet, number: int) -> Apv: timestamp = datetime.utcnow().strftime("%Y-%m-%d")