I called the mint function on a default coin to send some of my new coin to my METAMASK account but it looks like nothing was received. I can't tell what specifically could have gone wrong, so here's an image with all relevant information.

Thanks in advance for the help!

enter image description here


Your issue is that you are not following the ERC20 spec. You need to follow the spec in order for Metamask to understand that you have tokens.

You have two issues with your current code.

Your first issue is that you do not have a balanceOf map. Metamask uses this mapping to display your balances.

The second is that you do not have a totalSupply variable that tracks the total supply of tokens.

| improve this answer | |
  • clear, concise answer. Haven't implemented yet but really happy with your response. Thank you Shane – financial_physician Feb 4 at 5:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.