Support v0.8.4 custom errors
See original GitHub issueSee the announcement article for the new custom error syntax.
For the following code:
error SomeError();
contract Greeter {
function throwError() external pure {
revert SomeError();
}
}
I get this error in VSCode:
Linter: Parse error: missing ‘=’ at ‘(’ [undefined]
This is in spite of me using the latest version of solhint (3.3.6), which has recently added support for solidity v0.8.4 custom errors. Related thread: https://github.com/protofire/solhint/issues/289.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Support v0.8.4 custom errors · Issue #289 · protofire/solhint
Hey Paul, I just published solhint@3.3.5 which uses the latest version of the solidity parser and shouldn't throw this error. Please let me...
Read more >Solidity v0.8.4 is here - Adds custom structured errors and more!
v0.8.4 adds custom structured errors, bytes.concat(...) , allows more flexible configuration of the SMTChecker and fixes a bug in the Solidity ...
Read more >Support for Solidity v0.8.4 custom errors : r/etherscan - Reddit
v0.8.4 custom errors are a game changer for Solidity - they make it easier to work with errors, more gas efficient, and more...
Read more >Remix supports custom errors in Solidity - Medium
Remix IDE now supports Solidity v0.8.4 including Custom Errors. With Solidity v0.8.4, comes custom errors — where an error message can ...
Read more >Paul Razvan Berg on Twitter: "Feature request for @etherscan: add ...
add support for Solidity v0.8.4 custom errors. That is, display the name of the custom error that made the tx revert. It's becoming...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Should be included in the latest now, let me know how it goes.
Thanks @paulrberg. Now 2 issues, one i have not updated solhint to the latest and two i need to modify the parser to allow for the new syntax.