Ghassan Zein
Ghassan Zein

Reputation: 4189

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 Truffle Config

Eth Amount Eth Amount

Truffle Deploy --network NetworkName Result Deploy Result

Upvotes: 3

Views: 1190

Answers (2)

Silicon Socket
Silicon Socket

Reputation: 221

Please verify the folder structure:

truffle's folder structure

Upvotes: 1

Ghassan Zein
Ghassan Zein

Reputation: 4189

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.

Upvotes: 0

Related Questions