mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Conform constants to style guide
Constants should conform to style guide at https://solidity.readthedocs.io/en/latest/style-guide.html#constants
This commit is contained in:
parent
f0ebb26f29
commit
b39814a4f8
@ -29,7 +29,7 @@ value types and strings.
|
||||
pragma solidity >=0.4.0 <0.7.0;
|
||||
|
||||
contract C {
|
||||
uint constant x = 32**22 + 8;
|
||||
string constant text = "abc";
|
||||
bytes32 constant myHash = keccak256("abc");
|
||||
uint constant X = 32**22 + 8;
|
||||
string constant TEXT = "abc";
|
||||
bytes32 constant MY_HASH = keccak256("abc");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user