Skip to content

Commit

Permalink
Optimization: build contract specified in the metadata of the package…
Browse files Browse the repository at this point in the history
…d source.
  • Loading branch information
andreibancioiu committed Dec 27, 2023
1 parent 7e6adcf commit accd4cf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions multiversx_sdk_rust_contract_builder/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ def main(cli_args: List[str]):
packaged = PackagedSourceCode.from_file(packaged_src_path)
packaged.unwrap_to_filesystem(HARDCODED_UNWRAP_FOLDER)

if not specific_contract:
specific_contract = packaged.metadata.contract_name

metadata = BuildMetadata.from_env()

options = BuildOptions(
Expand Down

0 comments on commit accd4cf

Please sign in to comment.