GoofyGooberToken, you must name your contract file
GoofyGooberfor our token name (the same as above, just without the "Token") - thus, we will name our contract
/contractsfolder (which should be empty right now!), and run
Follow along if you want to create a GoofyGoober token like us but also feel free to replace the name with yours and make your own token!
.solfile and copy-paste the following:
The token symbol you choose, in our case "GG" can be any arbitrary character length but do keep in mind that some UIs may display ones that are too long differently.
100to how many tokens you would like your initial supply to be - we put 100 because there are very few true Goofy Goobers in the world! You can put any number you'd like for this - make sure to leave the
(10**18)as that multiplies the number we want as our supply to have 18 decimals.
cd ..back into your project root directory and then
scriptsdirectory (which should be empty right now!)
touch deploy.js, open the newly-created file and copy-paste the following:
cd ..back into your project root directory
npx hardhat run scripts/deploy.js --network rinkeby