joe mercado
joe mercado

compiling - different right hand side

first, i have a current version of the compiler:


and then i have an option to select a new compiler below that.

can’t compile as i have this error:

browser/SimpleCounter.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.5.1+commit.c8a2cb62.Emscripten.clang – note that nightly builds are considered to be strictly less than the released version
pragma solidity 0.4.24; 

Best answer

Bardia Pourvakil
Bardia Pourvakil
You have to change the compiler version to 0.4.24+


  1. 2
    Dayle Long
    Dayle Long
    I think the problem is that you have the wrong  compiler version. Try to change it. If it does not work out, then maybe  
    here you will find more detailed information.