solidity/test/libsolidity/semanticTests/functionCall/value_test.sol
2023-05-11 10:56:55 -05:00

9 lines
150 B
Solidity

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