I want to run contract-f87aacb4e7.sol in Remix. But error occurs like "Running contract-b2bfbf7ec7.sol ... pragma is not defined" How can I fix it? Please help me.

1 Answer 1


Probably you didn't set the compiler version at the top of .sol file. pragma solidity =0.8.18; You can find compiler version at the top of compiler tab in the left panel.

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.