Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scientific notation is not supported #21

Closed
dzentota opened this issue Dec 26, 2017 · 1 comment
Closed

Scientific notation is not supported #21

dzentota opened this issue Dec 26, 2017 · 1 comment
Milestone

Comments

@dzentota
Copy link

solhint ./contracts/Test.sol for next contract

pragma solidity ^0.4.18;


contract Test {
    uint256 constant public MAX_POSSIBLE_AMOUNT = 1e9 ether;
}


//Works
contract Test2 {
    uint256 constant public MAX_POSSIBLE_AMOUNT = 1000000000 ether;
}

returns:

line 5:51 missing ';' at 'e9'
line 5:54 mismatched input 'ether' expecting {'from', 'constant', 'public', 'internal', 'private', Identifier}

./contracts/Test.sol
1:17 warning Compiler version must be fixed compiler-fixed
5:52 error Expected indentation of 4 spaces but found 51 indent
5:52 warning Explicitly mark visibility of state state-visibility

✖ 3 problems (1 error, 2 warnings)

Expected:
No errors for Test contract

@idrabenia
Copy link
Contributor

Hi @dzentota ,

Thank you for the feedback!

Fix for this issue will be available in next release of solhint (during 1-2 weeks).

Best Regards
- Ilya

@idrabenia idrabenia added this to the v1.1.10 milestone Jan 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants