mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
TestFileParser: Adding new keyword wei for expressing function value
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
contract C {
|
||||
function f() public payable returns (uint) {
|
||||
return msg.value;
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// f(), 1 ether -> 1000000000000000000
|
||||
// f(), 1 wei -> 1
|
||||
Reference in New Issue
Block a user