Skip to content

Commit

Permalink
Spica / gateway: upwards & backwards compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreibancioiu committed Oct 10, 2024
1 parent 2d6e151 commit 1a6a270
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
16 changes: 6 additions & 10 deletions multiversx_sdk_cli/localnet/step_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "multiversx-sdk-cli"
version = "9.7.0"
version = "9.7.1"
authors = [
{ name="MultiversX" },
]
Expand Down

0 comments on commit 1a6a270

Please sign in to comment.