Solidity-coverage: Unparse-able solc 0.6.x syntax

Created on 2 Mar 2020  路  10Comments  路  Source: sc-forks/solidity-coverage

Tracking issue for new solc syntax that parser-diligence still has difficulty with:

  • file scoped structs & enums #file
  • contract types and enums as keys for mappings
  • payable as function call: payable(address)
  • receive when used as a function in 0.5.x (eth-gas-reporter 196)
  • { value: ..., gas: ... } (solc >= 0.6.2) (#483)

Most helpful comment

0.7.4

Thanks again @fvictorio!

All 10 comments

Hi @cgewecke. I created a fork of consensys's fork (yeah, I know...) and I'm actively working on it, since I need an up to date version of the parser for solhint and prettier-solidity. Check it out if you are interested: https://github.com/solidity-parser/parser

Almost all the issues you listed will be solved soon. The third one, payable as function call, is the exception; I will open an issue for that.

Oh great! Thanks @fvictorio.

Hi I think the issue I created earlier today is probably also relevant here #493

Oh, yeah, it is! @gitpusha could you please open an issue here? Thanks!

Hi @fvictorio . I will open an issue there. thanks!

@cgewecke @solidity-parser/[email protected] should have all these issues fixed, I think, in case you want to give it a try.

(Except the one that @gitpusha created, sorry, didn't notice it was added to this list)

Except the one that @gitpusha created, sorry, didn't notice it was added to this list

Ah sorry! I didn't get a chance yesterday to test that one out...

@fvictorio Fantastic. Thanks so much for doing all this, just amazing. 馃帀 馃帀

FYI I just ran the parser in all OpenZeppelin's contracts and, at least, there weren't any errors.

0.7.4

Thanks again @fvictorio!

Was this page helpful?
0 / 5 - 0 ratings