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

Have stub file for solidity version #23

Closed
yaronvel opened this issue Jan 26, 2017 · 4 comments
Closed

Have stub file for solidity version #23

yaronvel opened this issue Jan 26, 2017 · 4 comments

Comments

@yaronvel
Copy link
Contributor

Create version.sol that would include only
pragma solidity ^0.X.X;

All our files (e.g., not zeplin's) should import it.

@jellegerbrandy
Copy link
Contributor

why?

@yaronvel
Copy link
Contributor Author

So when we upgrade to a new compiler we wouldn't have to change many files.
Just a thought.

@yaronvel
Copy link
Contributor Author

Never mind. Tried to use it.
The compiler still issue a warning about missing pragma, even when the first line is to import version.sol.

@jellegerbrandy
Copy link
Contributor

I assume the importer just skips the pragma - it is a statement about the file itself, not an instruction in solidity.

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

2 participants