original.sol 611 B

1234567891011121314151617181920212223
  1. contract UnitExpression {
  2. function test() external {
  3. uint256 timestamp;
  4. timestamp = 1 seconds;
  5. timestamp = 1 minutes;
  6. timestamp = 1 hours;
  7. timestamp = 1 days;
  8. timestamp = 1 weeks;
  9. uint256 value;
  10. value = 1 wei;
  11. value = 1 gwei;
  12. value = 1 ether;
  13. uint256 someVeryVeryVeryLongVariableNameForTheMultiplierForEtherValue;
  14. value = someVeryVeryVeryLongVariableNameForTheMultiplierForEtherValue * 1 /* comment1 */ ether; // comment2
  15. value = 1 // comment3
  16. // comment4
  17. ether; // comment5
  18. }
  19. }