1

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

Thanks!

bumped to the homepage by Community yesterday

This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

  • 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
0

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).

0

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.

0

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.

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.