Skip to content

Commit

Permalink
Replace contract build / report using sc-meta.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreibancioiu committed Nov 24, 2024
1 parent a438a0a commit 29875a4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,5 @@ Make sure you migrate to the managed types **incrementally** and **thoroughly te
:::

:::tip
You can use the `mxpy contract report` command to verify whether your contract still requires dynamic allocation or not.
You can use the `sc-meta report` command to verify whether your contract still requires dynamic allocation or not.
:::
10 changes: 1 addition & 9 deletions docs/developers/meta/sc-build-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,12 @@ title: Build Reference

## How to: Basic build

To build a contract, it is enough to navigate in your contract crate and run
To build a contract, navigate to the contract folder and run the following command:

```sh
sc-meta all build
```

:::info Note
The traditional way to trigger a build in console is to call `mxpy contract build --path <project>`, which works as well. However, mxpy currently just forwards commands to the [MultiversX Metaprogramming standalone tool](/developers/meta/sc-meta#introduction), so you might as well call it directly.
:::

---

[comment]: # (mx-exclude-context)

## Configuring the build
Expand Down Expand Up @@ -157,8 +151,6 @@ After building the contracts, there are three more operations left to perform, b

Calling `cargo run clean` in the meta crate will run `cargo clean` in all wasm crates and delete the `output` folder.

`mxpy contract clean` also just forwards to this.

Note that even the clean operation relies on the ABI, in order to reach all the wasm crates.

[comment]: # (mx-context-auto)
Expand Down
4 changes: 2 additions & 2 deletions docs/developers/meta/sc-meta-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ This command is similar to `build-dbg`, in that it provides a shorthand for buil

### Calling `clean`

Calling `mxpy contract clean <project>` or `cargo run clean` in the meta crate will delete the `output` folder and clean outputs of the Rust crates.
Calling `cargo run clean` in the meta crate will delete the `output` folder and clean outputs of the Rust crates.

[comment]: # (mx-context-auto)

Expand Down Expand Up @@ -419,4 +419,4 @@ Calling `cargo run cs` in the meta crate or `sc-meta cs` in the root crate will
Subcommands:
- `install` Pulls the latest chain simulator docker image available. This command needs Docker to be installed and running on the current machine.
- `start` Starts the chain simulator in verbose mode at `localhost:8085`.
- `stop` Stops the chain simulator.
- `stop` Stops the chain simulator.

0 comments on commit 29875a4

Please sign in to comment.