-2

Error parsing C:\Users\"directory"\example.sol: ParsedContract.sol:45:1: ParserError: Expected pragma, import directive or contract/interface/library definition. } ^ Compilation failed. See above.

And yes, pragma solidity includes a ';'

closed as unclear what you're asking by goodvibration, shane, Achala Dissanayake, Briomkez, flygoing Nov 13 '18 at 18:59

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

1

Without showing us your full smart contract it's pretty difficult to find the root cause of the error.

However, I was able to reproduce a similar error by adding an extra } to the end of the smart contract.

Check for any extra } in your code and delete them.

  • Yep, you're right. I've been making lot of these silly mistakes lately. Constantly working on it. – Aditya Hegde Nov 20 '18 at 9:43

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