Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

MetaMask cannot connect to ganache-cli #960

Closed
tytom2003 opened this issue Feb 10, 2021 · 2 comments
Closed

MetaMask cannot connect to ganache-cli #960

tytom2003 opened this issue Feb 10, 2021 · 2 comments

Comments

@tytom2003
Copy link

Expected Behavior

When MetaMask connect the ganache-cli. it will show 1000Eth.

Current Behavior

i use the command to start ganache-cli.
ganache-cli --accounts=10 --defaultBalanceEther=1000 --port=8545 --db="D:\code\blockdb" -d

when i entered private key in metamask. metamask can not connect ganache-cli(127.0.0.1:8545). MetaMask can show not connect and it show 0 ETH balance.

but it will show "eth_Balance" in windows command.

Possible Solution

Unknown

Steps to Reproduce (for bugs)

  1. i enter a private key to Metamask in firefox browser.
  2. when i re-try ganache-cli to enter private key to Metamask. i cannot show ganache-cli first account balance and it show not connect.
  3. it will show "eth_Balance" in windows command.
  4. But when i open ganache-gui to enter private key to Metamask. Metamask can show first account balance at once.

Context

if i cannot use metamask connect ganache-cli. i cannot know web3.js whether can connect to ganache-cli. And i cannot store data to blockchain.

-->

Your Environment

  • Version used: ganache-cli V6.12.2
  • NodeJS Version: v12.16.3
  • Operating System and version (include distro if Linux): windows 10 version 1909
@davidmurdoch davidmurdoch transferred this issue from trufflesuite/ganache-cli-archive Aug 19, 2021
@kevinbluer
Copy link
Member

Hey @tytom2003, apologies for the slight delay in getting to this...is this still an issue for you (if we so we'll dig in and help you resolve)?

@haltman-at
Copy link
Contributor

Closing this for issue maintenance.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants