问题描述
Could not connect to your Ethereum client with the following parameters: - host > 127.0.0.1 - port > 7545 - network_id > * Please check that your Ethereum client: - is running - is accepting RPC connections (i.e.,"--rpc" option is used in geth) - is accessible over the network - is properly configured in your Truffle configuration file (truffle-config.js)
Truffle v5.3.9(核心:5.3.9)节点 v16.3.0
来自此视频https://youtu.be/XLahq4qyors?t=1385
是的,我的 ganache 被打开了,我的 truffle-config.json 配置正确,端口正确,并且都尝试了这项工作的其他解决方案,但不幸的是它没有工作
我的配置
require('babel-polyfill');
networks: {
development: {
host: "127.0.0.1",port: 7545,network_id: "*" // Match any network id
},},contracts_directory: './src/contracts/',contracts_build_directory: './src/abis/',compilers: {
solc: {
optimizer: {
enabled: true,runs: 200
},evmVersion: "petersburg"
}
}
}```
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)