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

11 lines
182 B
Solidity

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