tutorialtoken-box icon indicating copy to clipboard operation
tutorialtoken-box copied to clipboard

It doesn't display the balance correctly and doesn't start Metamask.

Open alexsicart opened this issue 8 years ago • 2 comments

Hello! I've downloaded this truffle-box & completed several times the tutorial, and doesn't display the balance (It shows 0), when I've written this

  string public name = 'TutorialToken';
  string public symbol = 'TT';
  uint public decimals = 2;
  uint public INITIAL_SUPPLY = 12000;

Doesn't shows anything, only 0, and when I try to transfer doesn't make anything, I have the testrpc activated, and with metamask running Localhost:8545.

alexsicart avatar Aug 05 '17 12:08 alexsicart

Try importing one of your private keys that is displayed when you start up testrpc into MetaMask. I had a similar issue where Account 0 in MetaMask had a zero balance but I was able to import multiple accounts by their private key.

raid5 avatar Aug 18 '17 16:08 raid5

I had this issue too @alexsicart . My solution:

  • Be sure that your metamask current RPC is: http://localhost:9545 meta01

  • Be sure to import an account with this private key (related to the first account): c87509a1c067bbde78beb793e6fa76530b6382a4c0241e5e4a9ec0a0f44dc0d3 (you can get the list of private keys here

Et voila:

screen shot 2017-12-10 at 16 57 40

balibou avatar Dec 10 '17 15:12 balibou