Search code examples
blockchainethereumtruffle

Why i cannot get 100 ether in pet-shop?


I have done 8 steps in pet-shop in Truffle:

  1. In the box titled "New RPC URL" enter http://localhost:9545 and click Save.
  2. The network name at the top will switch to say "Private Network". Click the left-pointing arrow next to "Settings" to close out of the page and return to the Accounts page.

Each account created by Truffle Develop is given 100 ether. You'll notice it's slightly less on the first account because some gas was used when the contract itself was deployed.

but i cannot find 100 ether in MetaMask, it is still 0 ether in account1.

Can you help me?


Solution

  • Make sure you have the correct seed phrase entered in step 6: In the box marked Wallet Seed, enter the mnemonic that was displayed when launching Truffle Develop: