2020-02-18 11:57:48 +00:00
|
|
|
contract C {
|
|
|
|
function f() public payable returns (uint) {
|
|
|
|
return msg.value;
|
|
|
|
}
|
|
|
|
}
|
2020-04-17 20:24:33 +00:00
|
|
|
// ====
|
|
|
|
// compileViaYul: also
|
2020-02-18 11:57:48 +00:00
|
|
|
// ----
|
|
|
|
// f(), 1 ether -> 1000000000000000000
|
|
|
|
// f(), 1 wei -> 1
|