diff options
author | chriseth <chris@ethereum.org> | 2018-09-04 22:31:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-04 22:31:25 +0800 |
commit | cc7daf7b476f498c4dcde7bdb342974097ffe9bf (patch) | |
tree | 707656e46a626f93bb24d45710ebda7ab31a013f /test/libsolidity/ViewPureChecker.cpp | |
parent | d88e5039ccc768f810f7882aa1f9ae338bc27dd3 (diff) | |
parent | e3097b30dace9bbd88a5a74e6507baad0bc12cc4 (diff) | |
download | dexon-solidity-cc7daf7b476f498c4dcde7bdb342974097ffe9bf.tar dexon-solidity-cc7daf7b476f498c4dcde7bdb342974097ffe9bf.tar.gz dexon-solidity-cc7daf7b476f498c4dcde7bdb342974097ffe9bf.tar.bz2 dexon-solidity-cc7daf7b476f498c4dcde7bdb342974097ffe9bf.tar.lz dexon-solidity-cc7daf7b476f498c4dcde7bdb342974097ffe9bf.tar.xz dexon-solidity-cc7daf7b476f498c4dcde7bdb342974097ffe9bf.tar.zst dexon-solidity-cc7daf7b476f498c4dcde7bdb342974097ffe9bf.zip |
Merge pull request #4829 from ethereum/callBytesReturn
Add return data to bare calls.
Diffstat (limited to 'test/libsolidity/ViewPureChecker.cpp')
-rw-r--r-- | test/libsolidity/ViewPureChecker.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/libsolidity/ViewPureChecker.cpp b/test/libsolidity/ViewPureChecker.cpp index d993b92e..b7ea1efc 100644 --- a/test/libsolidity/ViewPureChecker.cpp +++ b/test/libsolidity/ViewPureChecker.cpp @@ -103,7 +103,8 @@ BOOST_AUTO_TEST_CASE(address_staticcall) string text = R"( contract C { function i() view public returns (bool) { - return address(0x4242).staticcall(""); + (bool success,) = address(0x4242).staticcall(""); + return success; } } )"; |