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

Testnet account warning admonition #2361

Merged
merged 5 commits into from
Dec 11, 2024
Merged
Changes from 3 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
20 changes: 18 additions & 2 deletions docs/2.build/2.smart-contracts/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,18 +258,29 @@ Remember that you can create a named account through any wallet (i.e. [MyNearWal

:::

:::warning

When running the near account create-account command in a headless Linux environment (e.g., WSL), the `save-to-keychain` option may fail due to platform limitations. Use `save-to-legacy-keychain` instead of `save-to-keychain` to ensure compatibility.

:::


---

## Build the Contract

When you are ready to create a build of the contract run a one-line command depending on your environment.

If you encounter issues with Docker or prefer not to use Docker for building contracts, you can pass the --no-docker flag to certain commands (where applicable).
gagdiez marked this conversation as resolved.
Show resolved Hide resolved
<Tabs groupId="cli-tabs">
<TabItem value="js" label="🌐 JavaScript">

```bash
npm run build
```
Or
gagdiez marked this conversation as resolved.
Show resolved Hide resolved

```bash
gagdiez marked this conversation as resolved.
Show resolved Hide resolved
npm run build --no-docker
gagdiez marked this conversation as resolved.
Show resolved Hide resolved
```
gagdiez marked this conversation as resolved.
Show resolved Hide resolved

</TabItem>

Expand All @@ -278,6 +289,11 @@ When you are ready to create a build of the contract run a one-line command depe
```bash
cargo near build
```
Or

```bash
cargo near build --no-docker
```

</TabItem>

Expand Down