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

Removed unnecessary setup section, duplicate #1126

Merged
merged 1 commit into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
1 change: 0 additions & 1 deletion source/mainnet/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,6 @@
".smart-contracts/tutorials/nft-minting/build-smart-contract": "tutorials/nft-minting/build-smart-contract.html",
"./smart-contracts/tutorials/nft-minting/mint-xfer": "tutorials/nft-minting/mint-xfer.html",
"./smart-contracts/tutorials/sft-minting/index": "tutorials/sft-minting/index.html",
"./smart-contracts/tutorials/sft-minting/setup": "tutorials/sft-minting/setup.html",
"./smart-contracts/tutorials/sft-minting/build-smart-contract": "tutorials/sft-minting/build-smart-contract.html",
"./smart-contracts/tutorials/sft-minting/mint-xfer": "tutorials/sft-minting/mint-xfer.html",
"./smart-contracts/tutorials/fungible-tokens/index": "tutorials/fungible-tokens/index.html",
Expand Down
4 changes: 2 additions & 2 deletions source/mainnet/tutorials/sft-minting/build-smart-contract.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Smart contract modifications
============================

In this tutorial, you will use the example ``cis2-nft`` contract template from Concordium, which you can initialize using the cargo-concordium tool via the ``cargo concordium init`` command. In this tutorial you will add a couple of things and update some functions to give more flexibility to the template.
In this tutorial, you will use the example ``cis2-multi`` contract template from Concordium, which can be found `here <https://github.com/Concordium/concordium-rust-smart-contracts/tree/main/examples/cis2-multi>`_ for further reading. In this tutorial you will add a couple of things and update some functions to give more flexibility to the template.

First, you will add a new struct called ``TokenMetadata``. It needs to implement the ``Serialize`` and ``SchemaType`` traits. For those who are familiar with the Ethereum ecosystem, it's similar to the ABI.

Expand Down Expand Up @@ -57,7 +57,7 @@ When you have the ``TokenMetadata`` add one more line to the minting params stru
tokens: collections::BTreeMap<ContractTokenId, (TokenMetadata, ContractTokenAmount)>,
}

Always remember, à blockchain itself is a state-keeping machine. If you send a transaction, you change the state. If you mint an NFT or transfer it, the state is changed again. Basically, if you make any change to the data structure, you change the state. So what is this state? Look at the code snippet below.
Always remember, a blockchain itself is a state-keeping machine. If you send a transaction, you change the state. If you mint an NFT or transfer it, the state is changed again. Basically, if you make any change to the data structure, you change the state. So what is this state? Look at the code snippet below.

.. code-block:: rust

Expand Down
1 change: 0 additions & 1 deletion source/mainnet/tutorials/sft-minting/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,5 @@ One of the best use cases of semi-fungible tokens is in gaming and the metaverse
:maxdepth: 1
:caption: Semi-fungible token minting

setup
build-smart-contract
mint-xfer
24 changes: 0 additions & 24 deletions source/mainnet/tutorials/sft-minting/setup.rst

This file was deleted.