August 2019
Intermediate to advanced
486 pages
13h 52m
English
You should always add a new state variable at the end of all the existing state variables:
//Good Practicecontract SampleContract { uint256 public x; string public y; uint8 decimals; // New variable added}
In the preceding code, we have added a new state variable, decimals, at the end of the existing variables declaration.