Skip to content

Commit

Permalink
Update localnet to work with Sirius.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreibancioiu committed Jan 31, 2024
1 parent 7d110d2 commit 6d5d176
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion multiversx_sdk_cli/localnet/step_build_software.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ def build(configfile: Path, software_components: List[str]):
_do_build(cmd_node, golang_env)

wasmer_path = golang.get_gopath() / "pkg" / "mod" / _get_wasm_vm_package(config) / "wasmer"
wasmer2_path = golang.get_gopath() / "pkg" / "mod" / _get_wasm_vm_package(config) / "wasmer2"
libraries.copy_libraries(wasmer_path, cmd_node)
libraries.copy_libraries(wasmer2_path, cmd_node)

if "seednode" in software_components:
logger.info("Building seednode...")
Expand All @@ -33,7 +35,9 @@ def build(configfile: Path, software_components: List[str]):
_do_build(cmd_seednode, golang_env)

wasmer_path = golang.get_gopath() / "pkg" / "mod" / _get_wasm_vm_package(config) / "wasmer"
wasmer2_path = golang.get_gopath() / "pkg" / "mod" / _get_wasm_vm_package(config) / "wasmer2"
libraries.copy_libraries(wasmer_path, cmd_seednode)
libraries.copy_libraries(wasmer2_path, cmd_seednode)

if "proxy" in software_components:
logger.info("Building proxy...")
Expand All @@ -51,6 +55,6 @@ def _do_build(cwd: Path, env: Dict[str, str]):
def _get_wasm_vm_package(config: ConfigRoot) -> str:
go_mod = config.software.mx_chain_go.get_path_within_source(Path("go.mod"))
lines = utils.read_lines(go_mod)
line = [line for line in lines if "github.com/multiversx/mx-chain-vm-v" in line][-1]
line = [line for line in lines if "github.com/multiversx/mx-chain-vm-go" in line][0]
parts = line.split()
return f"{parts[0]}@{parts[1]}"
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.4.0"
version = "9.5.0"
authors = [
{ name="MultiversX" },
]
Expand Down

0 comments on commit 6d5d176

Please sign in to comment.