solidity/test/libsolidity/semanticTests/state/msg_value.sol
2022-05-19 20:23:28 +02:00

11 lines
189 B
Solidity

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