Skip to content

Commit

Permalink
Merge pull request #445 from multiversx/add-warning-for-contract-build
Browse files Browse the repository at this point in the history
Added warning to advise users to use sc-meta for building contracts
  • Loading branch information
popenta committed Sep 18, 2024
2 parents 325a71e + 0cd6c76 commit b371f7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions multiversx_sdk_cli/cli_contracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,19 +293,19 @@ def clean(args: Any):


def build(args: Any):
check_if_rust_is_installed()
project_paths = [Path(args.path)]
arg_list = cli_shared.convert_args_object_to_args_list(args)

for project in project_paths:
projects.build_project(project, arg_list)

show_warning("The primary tool for building smart contracts is `sc-meta`. Try using the `sc-meta all build` command.")


def do_report(args: Any):
deprecation_message = "`mxpy contract report` is deprecated. Please use `sc-meta report` instead."
logger.warning(deprecation_message)

check_if_rust_is_installed()
args_dict = args.__dict__
projects.do_report(args, args_dict)

Expand Down

0 comments on commit b371f7c

Please sign in to comment.