Skip to content

Commit 1a6a270

Browse files
Spica / gateway: upwards & backwards compatibility.
1 parent 2d6e151 commit 1a6a270

2 files changed

Lines changed: 7 additions & 11 deletions

File tree

multiversx_sdk_cli/localnet/step_config.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -171,17 +171,13 @@ def copy_config_to_proxy(config: ConfigRoot):
171171
proxy_config = config.proxy_config_folder()
172172
makefolder(proxy_config)
173173

174-
shutil.copy(
175-
config_prototype / 'config.toml',
176-
proxy_config)
174+
shutil.copy(config_prototype / 'config.toml', proxy_config)
175+
shutil.copytree(config_prototype / 'apiConfig', proxy_config / 'apiConfig')
177176

178-
shutil.copytree(
179-
config_prototype / 'apiConfig',
180-
proxy_config / 'apiConfig')
181-
182-
shutil.copy(
183-
config_prototype / 'external.toml',
184-
proxy_config)
177+
# Removed in newer versions:
178+
# https://github.com/multiversx/mx-chain-proxy-go/pull/454
179+
if (config_prototype / 'external.toml').exists():
180+
shutil.copy(config_prototype / 'external.toml', proxy_config)
185181

186182

187183
def patch_proxy_config(config: ConfigRoot):

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "multiversx-sdk-cli"
7-
version = "9.7.0"
7+
version = "9.7.1"
88
authors = [
99
{ name="MultiversX" },
1010
]

0 commit comments

Comments
 (0)