fmt.sol 631 B

123456789101112131415161718192021222324
  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
  15. * 1 /* comment1 */ ether; // comment2
  16. value = 1 // comment3
  17. // comment4
  18. ether; // comment5
  19. }
  20. }