Fix abi.decode returning single value.

This commit is contained in:
chriseth
2018-09-04 18:19:00 +02:00
parent 9daac90cf7
commit 624dbbe142
5 changed files with 37 additions and 21 deletions
@@ -0,0 +1,7 @@
contract C {
function f() public pure {
abi.decode("abc", ());
}
}
// ----
// Warning: (52-73): Statement has no effect.
@@ -0,0 +1,5 @@
contract C {
function f() public pure returns (bool) {
return abi.decode("abc", (uint)) == 2;
}
}