truffle-box / pet-shop-box

A box containing all you need to get started with our Pet Shop tutorial.
MIT License
204 stars 144 forks source link

Installed ganache and after adding new network on metamask, balance is empty. #70

Open wg-d opened 2 years ago

wg-d commented 2 years ago

I was following the truffle pet-shop tutorial and added new network but the balance is zero. What's wrong with my ganache? Or is the reason something else? Thanks!

beakerfm commented 2 years ago

I had a similar issue and I run ganache cli. You may refer to this for a potential fix: https://stackoverflow.com/questions/70364998/accounts-provided-by-ganache-cli-has-no-balance-at-all . I had the network set to localhost but setting it to 127.0.0.1 fixed it for me. Also note the port in use. For ganache-cli it is 8545 by default. The desktop app is port 7545 by default.

ritehauler commented 2 years ago

Same issue here.

lukedamato20 commented 1 year ago

Did you import the wallet on metamask (using the private key from ganache)?