2020-03-09 21:14:07 +00:00
|
|
|
contract Foo {
|
|
|
|
function getX() public returns (uint256 r) {
|
|
|
|
return x;
|
|
|
|
}
|
|
|
|
|
|
|
|
uint256 constant x = 56;
|
|
|
|
}
|
|
|
|
|
2020-04-20 21:05:14 +00:00
|
|
|
// ====
|
2020-11-21 13:54:16 +00:00
|
|
|
// compileToEwasm: also
|
2020-03-09 21:14:07 +00:00
|
|
|
// ----
|
|
|
|
// getX() -> 56
|