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 1 commit
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
6 changes: 3 additions & 3 deletions multiversx_sdk_cli/cli_contracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from multiversx_sdk_cli.interfaces import IAddress
from multiversx_sdk_cli.projects.core import get_project_paths_recursively
from multiversx_sdk_cli.projects.templates import Contract
from multiversx_sdk_cli.ux import show_message
from multiversx_sdk_cli.ux import show_message, show_warning

logger = logging.getLogger("cli.contracts")

Expand Down Expand Up @@ -293,16 +293,16 @@ 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):
check_if_rust_is_installed()
args_dict = args.__dict__
projects.do_report(args, args_dict)

Expand Down
Loading