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
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
The text was updated successfully, but these errors were encountered:
solhint ./contracts/Test.sol
for next contractreturns:
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
contractThe text was updated successfully, but these errors were encountered: