You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Put code like the following into your contract and run ethlint on it:
total = 50_000_000 * (uint256(10) ** decimals());
Expected behavior
ethlint should accept and correctly interpret this syntax.
Operating System
Linux
Linter version
Solium version 1.2.4
Comments
As a linter should help improve code readability among other things, and this is a readability feature, it would be nice if both work together. :)
Priority Low as it's easy to temporarily work around.
The text was updated successfully, but these errors were encountered:
Description
When underscores are used in integer literals as described in https://solidity.readthedocs.io/en/develop/types.html#rational-and-integer-literals to increase readability, the linter wrongly reports a syntax error:
30:19 error Syntax error: unexpected token _
Steps to reproduce
Put code like the following into your contract and run ethlint on it:
total = 50_000_000 * (uint256(10) ** decimals());
Expected behavior
ethlint should accept and correctly interpret this syntax.
Operating System
Linux
Linter version
Solium version 1.2.4
Comments
As a linter should help improve code readability among other things, and this is a readability feature, it would be nice if both work together. :)
Priority
Low
as it's easy to temporarily work around.The text was updated successfully, but these errors were encountered: