Closed travs closed 7 years ago
This issue should be solved with #72, but do you think we should do a patch version bump in this package before closing this issue? Will make it easier to convince truffle to include the updated version of solidity-parser
Actually, still having an issue parsing in the case where there is a trailing comma after the last entry in the name-value list. See this updated example (line 11), which gives the error:
Expected comment, end of line, identifier, or whitespace but "}" found. Line: 12, Column: 5
This is the contract we are trying to parse, in case we want to test another example input.
Excellent, these two issues are fixed. Thanks guys! 😄
When we try to instantiate a struct using curly braces there is a parsing error.
See the
contrubute
function in the solidity docs on structs.Using this minimal example:
Edit: A second example (larger contract) is over here: melonproject/protocol#28