Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot flatten file for sol compiler version 0.5.1 #36

Open
rahulrajpl opened this issue Mar 16, 2019 · 2 comments
Open

Cannot flatten file for sol compiler version 0.5.1 #36

rahulrajpl opened this issue Mar 16, 2019 · 2 comments

Comments

@rahulrajpl
Copy link

rahulrajpl commented Mar 16, 2019

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 rahulrajpl changed the title Cannot flatten file for version sol compiler version 0.5.1 Cannot flatten file for sol compiler version 0.5.1 Mar 16, 2019
@pynchmeister
Copy link

bump, no luck with this either

@HodorTheCoder
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants