Closed retotrinkler closed 7 years ago
Waiting for ConsenSys/solidity-parser#71
Hi @travs, this bug should be resolved on master at solidity-parser with Consensys/solidity-parser#72. Thanks for reporting.
If you want to run with this fix before Truffle updates to a new version of the parser I think you'll need to unpin the dependency in your local truffle and tie it to the solidity-parser repo.
@cgewecke Excellent, thanks for getting on this so quickly! :smile: Have updated ConsenSys/solidity-parser#71
err, still a small issue... check my updated comment
Note: have added shrinkwrap file to specify solidity-parser
repo so we can use their latest commits before the version is updated, and truffle
incorporates that new version.
We should remove the shrinkwrap file when truffle has a version of the parser that works for our contracts (#40); the shrinkwrap file is only useful for deploying a version of the protocol to ethpm before those changes are made in truffle.
Should be fixed in solidity-parser's master branch now. All credit goes to @cgewecke.
@travs turns out that trailing commas are not permitted in Solidity and were only allowed because of a bug in the implementation. See discussion here: https://github.com/ethereum/solidity/pull/2378
I will eventually roll back the support for trailing commas, and solc
will be fixed as well, so please update your contracts accordingly.
@federicobond Really appreciate you letting us know this, will update contracts.
will stash this for now
Relevant branch: https://github.com/melonproject/protocol/tree/ethpm