mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix abi.decode returning single value.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user