solidity/test/libsolidity/syntaxTests/denominations/denominations.sol

8 lines
272 B
Solidity
Raw Normal View History

2018-04-23 14:04:43 +00:00
contract C {
uint constant a = 1 wei + 2 szabo + 3 finney + 4 ether;
uint constant b = 1 seconds + 2 minutes + 3 hours + 4 days + 5 weeks;
2018-04-23 14:04:43 +00:00
uint constant c = 2 szabo / 1 seconds + 3 finney * 3 hours;
2020-06-18 15:09:24 +00:00
uint constant d = 2 gwei / 1 seconds + 3 finney * 3 hours;
2018-04-23 14:04:43 +00:00
}
2018-04-23 13:54:45 +00:00
// ----