0

During a tutorial on my first compile I received this error: Compiler Issue In Pink

:1:1: Parser error: Expected import directive or contract definition. pragma solidity ^0.5.12; ^

What's that about? How do I fix it? I'm an absolute beginner with ready to make his first dapp with illustrated assets and marketing ready to go.

Mentors and partners welcome.

1
  • 2
    select your compiler version on the right side
    – Sanjay S B
    Commented Sep 6, 2019 at 10:09

1 Answer 1

4

You need to choose the right compiler version.

On the right sidebar you can see your current compiler version.

The compiler version must match the number used in the pragma solidity!

Expand the dropdown and choose 0.5.12 nightly.

You should probably downgrade to a full commit version like 0.5.11 commit.

I hope this helps!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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