From e94fbdfc6e1fdc70cb291ab56201552a5553d883 Mon Sep 17 00:00:00 2001 From: Kuba Mazurek Date: Wed, 21 Jul 2021 14:55:29 +0200 Subject: [PATCH] Provide default subnet tag in Engine (#556) --- examples/utils.py | 4 +--- yapapi/engine.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/utils.py b/examples/utils.py index cb0edf080..6ccc019a4 100644 --- a/examples/utils.py +++ b/examples/utils.py @@ -28,9 +28,7 @@ def build_parser(description: str) -> argparse.ArgumentParser: parser = argparse.ArgumentParser(description=description) parser.add_argument("--driver", help="Payment driver name, for example `zksync`") parser.add_argument("--network", help="Network name, for example `rinkeby`") - parser.add_argument( - "--subnet-tag", default="devnet-beta.2", help="Subnet name; default: %(default)s" - ) + parser.add_argument("--subnet-tag", help="Subnet name; default: %(default)s") parser.add_argument( "--log-file", default=str(default_log_path), diff --git a/yapapi/engine.py b/yapapi/engine.py index f24368a38..a278931b3 100644 --- a/yapapi/engine.py +++ b/yapapi/engine.py @@ -55,7 +55,7 @@ DEFAULT_DRIVER: str = os.getenv("YAGNA_PAYMENT_DRIVER", "zksync").lower() DEFAULT_NETWORK: str = os.getenv("YAGNA_NETWORK", "rinkeby").lower() -DEFAULT_SUBNET: Optional[str] = os.getenv("YAGNA_SUBNET") +DEFAULT_SUBNET: Optional[str] = os.getenv("YAGNA_SUBNET", "devnet-beta.2") logger = logging.getLogger("yapapi.executor")