Skip to content

Commit

Permalink
Merge pull request #51 from multiversx/bring-some-v6-to-v5
Browse files Browse the repository at this point in the history
Bring fix from v6 to v5: handling multi-contracts
  • Loading branch information
andreibancioiu authored Jan 4, 2024
2 parents ac736d4 + 99ffc3c commit 4cb3c2a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM ubuntu:22.04

# Constants
ARG BUILDER_NAME="multiversx/sdk-rust-contract-builder:v5.4.0"
ARG BUILDER_NAME="multiversx/sdk-rust-contract-builder:v5.4.1"
ARG VERSION_RUST="nightly-2023-05-26"
ARG VERSION_BINARYEN="version_112"
ARG DOWNLOAD_URL_BINARYEN="https://github.com/WebAssembly/binaryen/releases/download/${VERSION_BINARYEN}/binaryen-${VERSION_BINARYEN}-x86_64-linux.tar.gz"
Expand Down
12 changes: 6 additions & 6 deletions integration_tests/previous_builds.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,17 @@ def __init__(self, name: str,
),
PreviousBuild(
name="a.3",
project_archive_url="https://github.com/multiversx/mx-reproducible-contract-build-example-sc/archive/refs/tags/v0.4.6.zip",
project_relative_path_in_archive="mx-reproducible-contract-build-example-sc-0.4.6",
project_archive_url="https://github.com/multiversx/mx-reproducible-contract-build-example-sc/archive/refs/tags/v0.4.7.zip",
project_relative_path_in_archive="mx-reproducible-contract-build-example-sc-0.4.7",
packaged_src_url=None,
contract_name=None,
expected_code_hashes={
"adder": "9fd12f88f9474ba115fb75e9d18a8fdbc4f42147de005445048442d49c3aa725",
"multisig": "b73050629c11b1f1a20ca6232abcef07897624195691552e3f2e2fce47822166",
"multisig-full": "37c3b90bdaa7d8d203385c91b0b5cb4d3c444ab9ec5263351978046a545854e3",
"multisig-view": "ebaf987b041fcda297da71291d76736e4e98a1e449e5ec37908cdc0198e8be37",
"multisig": "9600fc699c85fd5a24ecf28f0b8cf01dc281c81399fb018d5ad8405b7d401041",
"multisig-full": "9eed9c35113209fc69631cf29aac6e81f0e331132bf6e46198e679259075ad49",
"multisig-view": "3993cf3fb5cd18102e2b8946ea1997f6f1cc512537f453265ba1afd7378fc0c6",
"lottery-esdt": "e06b1a5c7fb71181a79e9be6b86d8ad154e5c2def4da6d2f0aa5266163823291"
},
docker_image="multiversx/sdk-rust-contract-builder:v5.3.0"
docker_image="multiversx/sdk-rust-contract-builder:v5.4.0"
)
]
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

def main(cli_args: List[str]):
repository_url = "https://github.com/multiversx/mx-reproducible-contract-build-example-sc"
tag = "0.4.7-beta.1"
tag = "0.4.7"
archve_subfolder = f"mx-reproducible-contract-build-example-sc-{tag}"
project_path = download_project_repository(f"{repository_url}/archive/refs/tags/v{tag}.zip", archve_subfolder)
project_path = project_path / archve_subfolder
Expand Down
2 changes: 1 addition & 1 deletion multiversx_sdk_rust_contract_builder/source_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def _is_source_code_file(path: Path) -> bool:
return True
if path.parent.name == "meta" and path.name == "Cargo.lock":
return False
if path.name in ["Cargo.toml", "Cargo.lock", "multicontract.toml", CONTRACT_CONFIG_FILENAME]:
if path.name in ["Cargo.toml", "Cargo.lock", "multicontract.toml", "sc-config.toml", CONTRACT_CONFIG_FILENAME]:
return True
return False

Expand Down

0 comments on commit 4cb3c2a

Please sign in to comment.