Skip to content

Commit

Permalink
fix: added small explanation on Rosetta to quickstart (#2333)
Browse files Browse the repository at this point in the history
* fix: added small explanation to quickstart

* fix: added rosetta to pre-requisites

* Update docs/2.build/2.smart-contracts/quickstart.md

Co-authored-by: Damián Parrino <[email protected]>

* Apply suggestions from code review

Co-authored-by: Damián Parrino <[email protected]>

---------

Co-authored-by: Guillermo Gallardo <[email protected]>
Co-authored-by: Damián Parrino <[email protected]>
  • Loading branch information
3 people authored Nov 26, 2024
1 parent b36c848 commit 9f306ab
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/2.build/2.smart-contracts/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ Before starting, make sure to set up your development environment.
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
nvm install latest

# ⚠️ For Mac Silicon users only, Rosetta is needed to compile contracts
# /usr/sbin/softwareupdate --install-rosetta --agree-to-license

# Install NEAR CLI to deploy and interact with the contract
npm install -g near-cli-rs@latest
```
Expand Down Expand Up @@ -178,7 +181,7 @@ Building and testing the contract is as simple as running the `test` command. Th
<details>
<summary> Failing tests? </summary>

Make sure that you are using `node v18`, `v20` or `v22`. You can always use: `nvm use 18` to switch to `node v20`
Make sure that you are using `node v18`, `v20` or `v22` - you can manage multiple versions using `nvm` - and that you have `Rosetta` installed on MacOS if you have an Apple Silicon processor.

</details>

Expand All @@ -196,7 +199,9 @@ Building and testing the contract is as simple as running the `test` command. Th
In the background, these commands are calling the build tools for each language and using a [Sandbox](./testing/integration-test.md) to test the contract.

:::tip Sandbox

Testing the contracts within a Sandbox allows you to understand how the contract will behave once deployed to the network while having total control over the testing environment.

:::

---
Expand Down

0 comments on commit 9f306ab

Please sign in to comment.