I just started onto the blockchain journey a couple of hours back trying to create an elections program on the Ethereum blockchain. While trying to migrate the smart contracts using truffle migrate, I encountered a roadblock which says the following:

enter image description here

I'm stuck and need some help. I have been following this tutorial: https://www.youtube.com/watch?v=3681ZYbDSSk


  • what does your migrations file look like, or your contracts directory, oftentimes if you just proceed further along in the video that might be enough. – GrandFleet Oct 25 '18 at 21:36

It is possible only to imagine the root cause of an error based on provided information.

Most probably you've updated migration script with proper path to solidity file, but put the file in a wrong place.

All contracts should be in contracts sub-directory of project root. In order to check structure you can run truffle compile and check result of completion (build directory).

| improve this answer | |

I was also following the same video and had this same issue. The thing that RESOLVED this issue for me was to "SAVE" the files in which I was working.

| improve this answer | |

All file contract(.sol) be in contract folder and you also have to create a migrationjs for same in migration folder and use sudo command if you face any permission issue.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.