Hi guys I have a code that seems to be outdated. When I compile the source code I get this Error:
ParserError: Source file requires different compiler version (current
compiler is 0.5.16+commit.9c3226ce.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
Any solution?

My code is using pragma solidity ^0.4.18;

Jun 17, 2021, 4:34 AM
Are you compiling the wrong Pragma?
Jun 17, 2021, 4:53 AM
I just want to compile an outdated code
Jun 17, 2021, 4:53 AM
Did you adjust this to the proper code though
Jun 17, 2021, 4:54 AM
use the same compiler version 0.4.18 while compiling
Jun 17, 2021, 4:54 AM
I'm using Truffle in my local machine
Jun 17, 2021, 4:55 AM
I haven't tried out Truffle before man, but if it has the ability to adjust your compiler version, I recommend making sure it matches your Pragma
Jun 17, 2021, 4:58 AM
Can I dm you?
Jun 17, 2021, 5:03 AM
Sure yeah, I might be slow at replies, my to-do-list is insanity
Jun 17, 2021, 5:03 AM

© 2024 Draquery.com All rights reserved.