solidity/test/libsolidity/semanticTests/functionCall/value_test.sol

12 lines
205 B
Solidity
Raw Normal View History

contract C {
function f() public payable returns (uint) {
return msg.value;
}
}
// ====
// compileViaYul: also
2021-04-23 15:59:01 +00:00
// compileToEwasm: also
// ----
// f(), 1 ether -> 1000000000000000000
// f(), 1 wei -> 1