Cover photo

📝 TUTO : Deploy Smart Contracts

In this tutorial I will show you how to deploy ERC20 and ERC721 (NFT) smart contracts

This tutorial is applicable on most of EVM compatible blockchain testnets such as Shardeum, Scroll, Taiko etc…

PART I : 𝗘𝗥𝗖𝟮𝟬

To start we gonna deploy an ERC20 Smart Contract 👇

1️⃣ Go to https://docs.openzeppelin.com/contracts/4.x/wizard

🔸select ERC20

🔸choose a name and symbol for your token

🔸set an amount in 'premint' (ex. 1 000 000 000) 🔸when it's done, click 'Open in Remix' ✅

post image

2️⃣ On Remix :

🔸click 'Compile Contract' button

🔸after compiling go to Deploy & Run Transactions

🔸in ENVIRONMENT select ‘’ Injected Provider Metamask’’ ( you should see your own adress if you have done everything right )

🔸Press DEPLOY ✅

Your smart contract is deployed 🎉

post image
post image

3️⃣ Now you gonna mint your own token :

🔸scroll down to see 'Deployed Contracts'

🔸click on your contract to open the window

🔸select 'Transfer'

🔸write your own wallet address and amount you want to transfer ( number of tokens doesn't matter, if you want 1000 tokens, type 1 and 21 zero like on screenshot below)

🔸click on 'transact'

🔸confirm transaction on your wallet ✅

post image

Congratulations on finishing the ERC20 part 🎉

PART II : 𝗘𝗥𝗖𝟳𝟮𝟭 ( 𝗡𝗙𝗧)

Now second part, we gonna deploy an ERC721 ( NFT) Smart Contract

👇

1️⃣ Return to https://docs.openzeppelin.com/contracts/4.x/wizard

🔸select ERC721

🔸choose a name and symbol for your token

🔸now click on 'mintable' 🔸When it's done, Open in Remix ✅

post image

2️⃣ On Remix, repeat same actions as before to Compile and Deploy your Smart Contract ✅

3️⃣ Now under 'Deployed Contracts' :

🔸click on your contract to open the window

🔸select 'Safe mint'

🔸like before write your own wallet address and the number of NFT to mint (eg.10)

🔸click on 'transact'

🔸confirm transaction on wallet ✅

post image

Congratulations, you have created your ERC721 contract and have just interacted with it 🎉