Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added warning to advise users to use sc-meta for building contracts #445

Merged
merged 2 commits into from
Sep 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading