Consensys / surya

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

Surya cannot parse new error format as of 0.8.4 #160

Closed Keegan-SourceHat closed 2 years ago

Keegan-SourceHat commented 2 years ago

In Solidity 0.8.4, a new way of erroring with a custom message was added.

https://blog.soliditylang.org/2021/04/21/custom-errors/

Surya is unable to parse any contract that uses this new kind of error handling. You get a mismatched input error, for example:

errors: [ { message: "mismatched input '(' expecting {';', '='}", line: 49, column: 30 } ]

GNSPS commented 2 years ago

Thanks @KeeganBlack ! I'll get the parser updated!

GNSPS commented 2 years ago

The parser actually wasn't pinned for a long time, you only needed to uninstall and install surya whenever this happens, sorry for not getting back to you, sooner! :🙈