solidity/test/libsolidity/semanticTests/state/msg_value.sol
2021-04-23 17:00:01 +01:00

12 lines
212 B
Solidity

contract C {
function f() public payable returns (uint) {
return msg.value;
}
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f() -> 0
// f(), 12 ether -> 12000000000000000000