Consensys / surya

A set of utilities for exploring Solidity contracts
Apache License 2.0
1.07k stars 118 forks source link

Support receive function #115

Closed protortyp closed 4 years ago

protortyp commented 4 years ago

Currently it doesn't support the receive function introduced in Solidity 0.6.0 as described here.

/home/chris/.npm-global/lib/node_modules/surya/node_modules/yargs/yargs.js:1109
      else throw err
           ^
ParserError: mismatched input '(' expecting {'from', 'calldata', 'constant', 'internal', 'private', 'public', Identifier} (79:9)
...
protortyp commented 4 years ago

Guess this issue could be called "Support Solidity 0.6.0" as there are some more issues concerning this version. E.g. the missing fallback function.

GNSPS commented 4 years ago

Hey @chrsengel ! Thank you for reporting this! I'm taking on support for v0.6.0 and hopefully have it completed really soon!

GNSPS commented 4 years ago

This was fixed in #116 ! 🎉

A major update to the parser that we are maintaining ourselves now! 🚀

Install the new version to be able to parse any Solidity 0.6.x contract! 💪