Skip to content

Commit

Permalink
Add additional steps to erc 20 process.
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtCoin committed Nov 6, 2023
1 parent 0c79fc6 commit 62a7b2f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
Binary file not shown.
Binary file not shown.
15 changes: 11 additions & 4 deletions smart-contracts/fundamentals/erc-20-quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,23 @@ In Remix, workspaces are where you can create a contract, or group of contracts,
### Customize the contract

The contract template we’re using is pretty simple. We just need to modify a couple of variables.
1. Click the compiler icon to open the compiler panel. Update the compiler version by selecting `0.8.20` from the compiler dropdown.

1. Under the **contract** directory, click **MyToken.sol**.
![Update the compiler version](../../.gitbook/assets/smart-contracts-fundamentals-erc-20-quickstart-remix-compiler.webp)

2. Under the **contract** directory, click **MyToken.sol**.

![Open the MyToken contract.](../../.gitbook/assets/smart-contracts-fundamentals-erc-20-quickstart-remix-customize.webp)
2. In the editor panel, replace `MyToken` with whatever you’d like to name your token. In this example, we’ll use `CorgiCoin`.

3. Update the **pragma solidity** field to `^0.8.20`.

![Update the pragma solidity field.](../../.gitbook/assets/smart-contracts-fundamentals-erc-20-quickstart-remix-pragma.webp)
4. In the editor panel, replace `MyToken` with whatever you’d like to name your token. In this example, we’ll use `CorgiCoin`.

![Change token name.](../../.gitbook/assets/smart-contracts-fundamentals-erc-20-quickstart-remix-token-name.webp)
3. On the same line, replace the second string with whatever you want the symbol of your token to be. In this example, we’ll use `CRG`.
5. On the same line, replace the second string with whatever you want the symbol of your token to be. In this example, we’ll use `CRG`.

![Change token ticket.](../../.gitbook/assets/smart-contracts-fundamentals-erc-20-quickstart-remix-ticker.webp)
![Change token ticket.](../../.gitbook/assets/smart-contracts-fundamentals-erc-20-quickstart-remix-ticker.webp)

That’s all we need to change within this contract. You can see on line 4 that this contract is importing another contract from `@openzeppelin` for us, meaning that we can keep our custom token contract simple.

Expand Down

0 comments on commit 62a7b2f

Please sign in to comment.