块菌v5.0.3配置:
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
networks: {
development: {
host: "127.0.0.1", //also tried 'localhost', just in case
port: 7545,
network_id: "5777"
}
}
};Ganache v1.3.0配置

在执行truffle migrate --reset或truffle compile或truffle migrate --network development --reset --compile-all --verbose-rpc时,什么都不会发生:没有输出,就没有生成。但是,我认为以前相同的代码在不同的操作系统(目前使用Linux )上工作(输出和构建)。
配置有什么问题?
编辑: Ganache日志显示,在我试图编译契约时,没有松露的连接。
[9:09:57 PM] Starting server (version 1.3.0) with initial configuration: {"hostname":"127.0.0.1","port":7545,"network_id":5777,"default_balance_ether":100,"total_accounts":10,"unlocked_accounts":[],"locked":false,"vmErrorsOnRPCResponse":true,"verbose":false,"gasLimit":6721975,"gasPrice":20000000000,"hardfork":"constantinople"}
[9:09:57 PM] Ganache started successfully!
[9:09:57 PM] Waiting for requests...发布于 2019-02-10 21:29:08
将松露卷回4.1.13版本解决了我的问题。我能够看到错误消息(openzeppelin-solidity是一个缺失的依赖项),修复错误和构建契约。
https://ethereum.stackexchange.com/questions/66775
复制相似问题