You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/fungible-token/README.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ cargo test --package fungible-token -- --nocapture
30
30
31
31
## Deploy
32
32
33
-
Set contract account $CONTRACT_ID
33
+
This smart contract will get deployed to your Utility Net account. For this example, please create a new Utility Net account. Because Utility Net allows the ability to upgrade contracts on the same account, initialization functions must be cleared. If you'd like to run this example on a Utility Net account that has had prior contracts deployed, please use the `unc-cli` command `unc delete`, and then recreate it in Wallet. To create (or recreate) an account, please follow the directions in [Utility Net Wallet](https://chromewebstore.google.com/detail/mywallets-v1/poljcmobchfooceghefdokchdkfmlcbk) or [Cli wallet](https://github.com/utnet-org/utility-cli-rs/releases/tag/v0.15.0).
34
34
35
35
```sh
36
36
# create account and import account in testnet
@@ -58,13 +58,13 @@ FT contract should be initialized before usage.
58
58
The next command will initialize the contract using the `new` method:
- The maximum balance value is limited by U128 (2**128 - 1).
12
12
- JSON calls should pass [U128] or [U64] as a base-10 string. E.g. "100".
13
-
- The core NFT standard does not include escrow/approval functionality, as `nft_transfer_call` provides a superior approach. Please see the approval management standard if this is the desired approach.
13
+
- The core NFT standard does not include escrow/approval functionality, as `nft_transfer_call` provides a superior approach. An escrow system can, of course, be added as a separate contract or additional functionality within this contract.
14
14
15
15
## Building
16
16
@@ -27,3 +27,70 @@ To test run:
27
27
```bash
28
28
cargo test --workspace --package non-fungible-token -- --nocapture
29
29
```
30
+
31
+
## Deploy
32
+
33
+
This smart contract will get deployed to your Utility Net account. For this example, please create a new Utility Net account. Because Utility Net allows the ability to upgrade contracts on the same account, initialization functions must be cleared. If you'd like to run this example on a Utility Net account that has had prior contracts deployed, please use the `unc-cli` command `unc delete`, and then recreate it in Wallet. To create (or recreate) an account, please follow the directions in [Utility Net Wallet](https://chromewebstore.google.com/detail/mywallets-v1/poljcmobchfooceghefdokchdkfmlcbk) or [Cli wallet](https://github.com/utnet-org/utility-cli-rs/releases/tag/v0.15.0).
34
+
35
+
In the project root, create account and import account (a.k.a log in) to your newly created account with `unc-cli` by following the instructions after this command.
To make this tutorial easier to copy/paste, we're going to set an environment variable for our account id. In the below command, replace `MY_ACCOUNT_NAME` with the account name we just logged in with, including the `.testnet`:
NFT contract should be initialized before usage. More info about the metadata at [xxx.io](https://xxx.io/Standards/NonFungibleToken/Metadata.html). But for now, we'll initialize with the default metadata.
unc tokens $NFT_ID view-nft-assets $NFT_ID network-config testnet now
64
+
65
+
## Transferring our NFT
66
+
67
+
Let's set up an account to transfer our freshly minted token to. This account will be a account of the Utility account we logged in with originally via `unc account import`.
0 commit comments