Skip to content

Commit

Permalink
Merge pull request #57 from georgescharlesbrain/patch-13
Browse files Browse the repository at this point in the history
Update 5_managed_coin.md
  • Loading branch information
uvd authored Oct 26, 2023
2 parents 9ab290a + 2a5220f commit 8f9de3c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions unit-three/lessons/5_managed_coin.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Managed Coin Example

Now we have peeked under the hood of the `sui::coin` module, we can look at a simple, but complete example of creating a type of custom fungible token where there is a trusted manager that has the capability to mint and burn, similar to many ERC-20 implementations.
Now we have peeked under the hood of the `sui::coin` module, we can look at a simple but complete example of creating a type of custom fungible token where there is a trusted manager that has the capability to mint and burn, similar to many ERC-20 implementations.

## Smart Contract

Expand Down Expand Up @@ -32,7 +32,7 @@ The two immutable objects created are respectively the package itself and the `C

![Treasury Object](../images/treasury.png)

Export the object ID's of the package object and the `TreasuryCap` object to environmental variables:
Export the object IDs of the package object and the `TreasuryCap` object to environmental variables:

```bash
export PACKAGE_ID=<package object ID from previous output>
Expand All @@ -51,7 +51,7 @@ To mint some `MNG` tokens, we can use the following CLI command:

![Minting](../images/minting.png)

Export the object ID's of the newly minted `COIN<MANAGED>` object to a bash variable:
Export the object ID of the newly minted `COIN<MANAGED>` object to a bash variable:

```bash
export COIN_ID=<coin object ID from previous output>
Expand All @@ -71,4 +71,4 @@ To burn an existing `COIN<MANAGED>` object, we use the following CLI command:

Verify that the `Supply` field under the `TreasuryCap<MANAGED>` object should be back to `0`.

*Exercise: What other commonly used functions do fungible tokens need? You should know enough about programming in Move now to try to implement some of these functions.*
*Exercise: What other commonly used functions do fungible tokens need? You should know enough about programming in Move now to try to implement some of these functions.*

0 comments on commit 8f9de3c

Please sign in to comment.