aragon-cli icon indicating copy to clipboard operation
aragon-cli copied to clipboard

Solidity parser fails on fallback function

Open sbc64 opened this issue 7 years ago • 1 comments

The solidity parser fails when there is fallback function BUT it only happens when there is no space.

Works: function () payable {}

Does not work: function() payable {}

$ aragon run
  ✔ Building frontend
  ✔ Prepare files for publishing
  ✖ Generate application artifact
    → Cannot read property 'split' of undefined
    Publish althea.aragonpm.eth
    Fetch published repo
  Create DAO

The culprit is this line: https://github.com/aragon/aragon-cli/blob/master/src/helpers/solidity-extractor.js#L18

It isn't urgent for this to get solved, but I'd rather see this documented until the regex gets updated to handle this. :smiley:

sbc64 avatar Dec 05 '18 11:12 sbc64

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for contributing to Aragon! 🦅

stale[bot] avatar Jun 15 '19 12:06 stale[bot]