mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
299873182b
Include the pragma explicitly, rename the file to have a _v1 suffix, and also add V2 counterparts where missing.
25 lines
496 B
Solidity
25 lines
496 B
Solidity
pragma abicoder v1;
|
|
contract C {
|
|
function f(bool _b) public returns (uint256) {
|
|
if (_b) return 1;
|
|
else return 0;
|
|
}
|
|
|
|
function g(bool _in) public returns (bool _out) {
|
|
_out = _in;
|
|
}
|
|
}
|
|
// ====
|
|
// ABIEncoderV1Only: true
|
|
// ----
|
|
// f(bool): 0x0 -> 0x0
|
|
// f(bool): 0x1 -> 0x1
|
|
// f(bool): 0x2 -> 0x1
|
|
// f(bool): 0x3 -> 0x1
|
|
// f(bool): 0xff -> 0x1
|
|
// g(bool): 0x0 -> 0x0
|
|
// g(bool): 0x1 -> 0x1
|
|
// g(bool): 0x2 -> 0x1
|
|
// g(bool): 0x3 -> 0x1
|
|
// g(bool): 0xff -> 0x1
|