solidity/test/libsolidity/semanticTests/literals/gwei.sol

11 lines
181 B
Solidity
Raw Normal View History

2020-06-18 15:09:24 +00:00
contract C {
2020-07-08 18:35:02 +00:00
uint constant x = 1 gwei;
2020-06-18 15:09:24 +00:00
2020-07-08 18:35:02 +00:00
function f() public view returns(uint) { return x; }
2020-06-18 15:09:24 +00:00
}
// ====
// compileToEwasm: also
// compileViaYul: also
2020-06-18 15:09:24 +00:00
// ----
// f() -> 1000000000