From 1a6a2702f65f0e5ee66f6dd01539c4e943408a20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20B=C4=83ncioiu?= Date: Thu, 10 Oct 2024 17:04:10 +0300 Subject: [PATCH] Spica / gateway: upwards & backwards compatibility. --- multiversx_sdk_cli/localnet/step_config.py | 16 ++++++---------- pyproject.toml | 2 +- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/multiversx_sdk_cli/localnet/step_config.py b/multiversx_sdk_cli/localnet/step_config.py index ba3a4447..48053a63 100644 --- a/multiversx_sdk_cli/localnet/step_config.py +++ b/multiversx_sdk_cli/localnet/step_config.py @@ -171,17 +171,13 @@ def copy_config_to_proxy(config: ConfigRoot): proxy_config = config.proxy_config_folder() makefolder(proxy_config) - shutil.copy( - config_prototype / 'config.toml', - proxy_config) + shutil.copy(config_prototype / 'config.toml', proxy_config) + shutil.copytree(config_prototype / 'apiConfig', proxy_config / 'apiConfig') - shutil.copytree( - config_prototype / 'apiConfig', - proxy_config / 'apiConfig') - - shutil.copy( - config_prototype / 'external.toml', - proxy_config) + # Removed in newer versions: + # https://github.com/multiversx/mx-chain-proxy-go/pull/454 + if (config_prototype / 'external.toml').exists(): + shutil.copy(config_prototype / 'external.toml', proxy_config) def patch_proxy_config(config: ConfigRoot): diff --git a/pyproject.toml b/pyproject.toml index c90a4f59..d6deeb97 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "multiversx-sdk-cli" -version = "9.7.0" +version = "9.7.1" authors = [ { name="MultiversX" }, ]