Closed baizetianxia closed 2 years ago
What is the exact command you are running? Does ganache --fork mainnet
work for you?
@davidmurdoch hello, I just exected ganache-cli --fork https://mainnet.infura.io/v3/project_id
. Got "Error: The fork provider errored when checking net_version: Invalid JSON RPC response: """
ganache-cli --fork mainnet
didnot wok. Got "Error: The fork provider errored when checking net_version: connection not open on send()"
I just noticed you are using Ganache v6, which is very old. Please update to the ganache package by running:
$ npm uninstall ganache-cli -g
$ npm install ganache -g
Thanks a lot. My problem of ganache-cli has been solved according to your suggestions.
When forking https://mainnet.infura.io/v3/project_id, I get the error:
The URL does respond to a CURL request:
Dev envirnment MacOS :12.0.1 , M1 node 12.22.12,16.13.2 Ganache CLI v6.12.2 (ganache-core: 2.13.2)