简体   繁体   中英

Truffle deploy compiles contracts but doesnt migrate to network

As shown below, when running truffle deploy contracts are being compiled in /build directory, but they are never migrated to the specified network.

There are NO LOGS at all for truffle deploy to allow debugging of the issue. even while running --versbose-rpc, it shows nothing that makes sense.

I have enough Eth and blockchain is running fine.

Truffle.js config 松露配置

Eth Amount以太币数量

Truffle Deploy --network NetworkName Result 部署结果

I found out what the issue is. I was deploying to a previous backup of geth blockchain, which is not possible in this case.

This has been solved by creating a fresh new blockchain directory and then deploying all the solidity files there.

What bothers here is why truffle doesnt log these issues. I hope they add more and more logging on the next release.

Please verify the folder structure:

truffle's folder structure

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM