LESSON 12: Is mint function necessary if we have a fixed initial supply? #2021
Unanswered
DorianDaSilva
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am writing a
mint
function into "ManualToken.sol``` but I am having trouble writing the tests for it manually. Tests described in openzeppelin refer back to multiple other contracts that do not transpose to this simple minting function.I was wondering if it is necessary to include a mint function into the token contract when its total supply is equal to initial supply (Does initial supply gets minted when deploying contract?)
below is the standard mint function
MINT FUNCTION
========================================================================================
I would appreciate if any of the more exprienced devs here could help me come up with a few simple test fro both mint and burn functions without having to import openzeppelin contracts.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions