-
Notifications
You must be signed in to change notification settings - Fork 46
Remove restriction that contract names must match filenames #3
Comments
Updates from Slack:
|
All of those issues are Truffle restrictions, and not related to the version of solidity. Upgrading solidity won’t fix those directly (although we might be able to use 0.4.9’s new output structure to fix some or all of these issues). This is on my near-term roadmap. The restriction that a contract name must match the filename is an old restriction from the early days of Truffle, and should be able to be safely removed now. |
I'm going to rename this to "Remove restriction that contract names must match file names" |
Let me rephrase the above: Mike was mistaken - it's not a solc bug, but solc 0.4.9 might let us fix it. I'm wary of upgrading to solc 0.4.9 given that I've been told "there's issues", mostly by @pipermerriam, and the last thing I want to do is release those issues onto Truffle users. I hope to better evaluate it soon. |
Thanks for the clarification. This probably belongs more in the main truffle repo issue tracker then... Though I've noticed that the update wasn't |
This restriction has been removed in 3.1.9 beta. Your feedback welcome. More details here: https://github.com/ConsenSys/truffle/releases/tag/3.1.9 Note that it was a quick beta release (getting on a plane today) so if you can try it out for your context that'd be great. Remember: Betas are supposed to bake. The cooking time on this one might be a week or two. Would love for you guys to try out the use case again above with the new beta and tell me what you think. |
solc 0.4.8
has some issues with source files which do not contain a contract or library with the same name as the filename. I recommend bumping the version ofsolc
From ConsenSys slack:
The text was updated successfully, but these errors were encountered: