Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bucanero committed Dec 14, 2024
1 parent db909cf commit 04a77ae
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 83 deletions.
16 changes: 8 additions & 8 deletions docs/3.tutorials/nfts/minting-nfts.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,19 +138,21 @@ self.owner_by_id.insert(&token_id, &owner_id);
To build your contract run the following command in your terminal which builds your contract using Rust's `cargo`.

```bash
./scripts/build.sh
cargo near build
```

This will generate WASM binaries into your `res/` directory. This WASM file is the smart contract we'll be deploying onto the NEAR blockchain.

> **Tip:** If you run into errors make sure you have [Rust installed](/build/smart-contracts/quickstart#prerequisites) and are in the root directory of the NFT example.
:::tip
If you run into errors make sure you have [Rust installed](/build/smart-contracts/quickstart#prerequisites) and are in the root directory of the NFT example.
:::

### Testing the contract {#testing-the-contract}

Written in the smart contract there are pre-written tests that you can run. Run the following command in your terminal to perform these simple tests to verify that your contract code is working.

```bash
cargo test -- --nocapture
cargo test
```

> **Note:** the more complex simulation tests aren't performed with this command but you can find them in `tests/sim`.
Expand Down Expand Up @@ -399,14 +401,12 @@ Finally, if you are new to Rust and want to dive into smart contract development

**_Happy minting!_** 🪙

## Blockcraft - a Practical Extension

If you'd like to learn how to use Minecraft to mint NFTs and copy/paste builds across different worlds while storing all your data on-chain, be sure to check out our [Minecraft tutorial](/tutorials/nfts/minecraft-nfts)

## Versioning for this article {#versioning-for-this-article}
:::note Versioning for this article

At the time of this writing, this example works with the following versions:

- cargo: `cargo 1.54.0 (5ae8d74b3 2021-06-22)`
- rustc: `rustc 1.54.0 (a178d0322 2021-07-26)`
- near-cli: `2.1.1`

:::
69 changes: 0 additions & 69 deletions docs/3.tutorials/nfts/simple-nft-minting-example.md

This file was deleted.

6 changes: 0 additions & 6 deletions website/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,12 +400,6 @@ const sidebar = {
{
"Non-Fungible Tokens (NFT)": [
"tutorials/nfts/minting-nfts",
"tutorials/nfts/minting-nft-frontend",
{
"type": "link",
"label": "Building a Frontend",
"href": "https://github.com/near-examples/nft-tutorial-frontend"
},
{
"type": "html",
"value": "<hr/>"
Expand Down

0 comments on commit 04a77ae

Please sign in to comment.