Syntax error when emitting events in Solidity 0.4.21
See original GitHub issueThis issue is a duplication of this question on Ethereum StackExchange:
I’m having a syntax error in VS Code in the parts where I emit events using new notation for Solidity v0.4.21.
Remix doesn’t raise any errors, though.
My User Settings in VS Code contain "solidity.compileUsingRemoteVersion": "latest"
, and compiler doesn’t raise error on emit
itself, rather gives this message:
Syntax error: Expected "!=", "%", "%=", "&", "&&", "&=", "*", "*=", "+", "++", "+=", ",", "-", "--", "-=", "/", "/*", "/=", ";", "<", "<<", "<<=", "<=", "=", "==", ">", ">=", ">>", ">>=", ">>>", "?", "^", "^=", "|", "|=", "||", comment, end of line, or whitespace but "(" found.
Here’s how it looks like (2nd emit event is ok for some reason):
The problem is in syntax only, compilation completes successfully.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:7
- Comments:34 (16 by maintainers)
Top GitHub Comments
@duaraghav8 Many thanks, I will update it today and let you know. And yes indentation formatting seems rather complex.
MAN this feature is in demand!