solidity-flattener icon indicating copy to clipboard operation
solidity-flattener copied to clipboard

Cannot flatten file for sol compiler version 0.5.1

Open rahulrajpl opened this issue 6 years ago • 2 comments

I have a solidity file named 'Manager.sol' for compiler version 0.5.1. First line of the file reads pragma solidity 0.5.1 However, while running I am getting the following error.

Manager.sol:1:1: Warning: Source file does not specify required compiler version! Consider adding "pragma solidity ^0.5.2;"

^
pragma solidity ^0.4.13;

Is there a bug or a fundamental mistake I am doing?

rahulrajpl avatar Mar 16 '19 12:03 rahulrajpl

bump, no luck with this either

pynchmeister avatar Apr 07 '19 11:04 pynchmeister

Looks like it automatically adds the pragma solidity ^0.4.13 instead of the included pragmas for every flattened contract .sol. You can go in and change it to what it should be in the flattened output.

HodorTheCoder avatar Aug 15 '19 20:08 HodorTheCoder