3

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?

Bob Zheng
  • 825
  • 4
  • 14
  • 25
  • 1
    Connect to the localhost:9545 network through the network selection section at the top of the metamask extension. – Neha Nov 16 '17 at 18:39

2 Answers2

1

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:

zerostatic
  • 112
  • 1
  • 7
1

You can see your correct balance by switching to the correct testnet. Click "Custom RPC" in MetaMask and enter http://127.0.0.1:9545.

The tutorial has been updated but still does have an error in it. http://truffleframework.com/tutorials/pet-shop

Make sure to not include view int eh adopt function in contracts/Adoption.sol for it to work with MetaMask.

thebkr7
  • 51
  • 4