2019-02-06 11:10:48 +00:00
|
|
|
contract C {
|
|
|
|
function f() public returns (uint) {
|
2019-02-28 13:16:16 +00:00
|
|
|
return 2;
|
2019-02-06 11:10:48 +00:00
|
|
|
}
|
|
|
|
function g(uint x, uint y) public returns (uint) {
|
|
|
|
return x - y;
|
|
|
|
}
|
|
|
|
function h() public payable returns (uint) {
|
|
|
|
return f();
|
|
|
|
}
|
2019-02-28 13:16:16 +00:00
|
|
|
function i(bytes32 b) public returns (bytes32) {
|
2019-02-21 00:13:14 +00:00
|
|
|
return b;
|
|
|
|
}
|
2019-02-28 13:16:16 +00:00
|
|
|
function j(bool b) public returns (bool) {
|
2019-02-21 22:25:12 +00:00
|
|
|
return !b;
|
|
|
|
}
|
2019-02-28 13:16:16 +00:00
|
|
|
function k(bytes32 b) public returns (bytes32) {
|
|
|
|
return b;
|
|
|
|
}
|
2019-02-25 17:10:09 +00:00
|
|
|
function s() public returns (uint256) {
|
|
|
|
return msg.data.length;
|
|
|
|
}
|
2019-02-06 11:10:48 +00:00
|
|
|
}
|
|
|
|
// ----
|
2019-02-28 13:16:16 +00:00
|
|
|
// f() -> 2
|
2019-02-06 11:10:48 +00:00
|
|
|
// g(uint256,uint256): 1, -2 -> 3
|
2019-02-28 13:16:16 +00:00
|
|
|
// h(), 1 ether -> 2
|
|
|
|
// i() -> FAILURE
|
|
|
|
// j(bool): true -> false
|
|
|
|
// k(bytes32): 0x31 -> 0x31
|
2019-02-25 17:10:09 +00:00
|
|
|
// s(): hex"4200ef" -> 7
|