diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2015-01-29 17:44:29 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2015-01-29 20:34:07 +0800 |
commit | bdb446267332d924eb347eb138bc5f68a460b43f (patch) | |
tree | 6d2a9cb1efa3c24df24a5edafd23cd3c40b963ce | |
parent | 1ea693f3ff2fc10a8f8a94a3e2e2bf862a6d27b8 (diff) | |
download | dexon-solidity-bdb446267332d924eb347eb138bc5f68a460b43f.tar dexon-solidity-bdb446267332d924eb347eb138bc5f68a460b43f.tar.gz dexon-solidity-bdb446267332d924eb347eb138bc5f68a460b43f.tar.bz2 dexon-solidity-bdb446267332d924eb347eb138bc5f68a460b43f.tar.lz dexon-solidity-bdb446267332d924eb347eb138bc5f68a460b43f.tar.xz dexon-solidity-bdb446267332d924eb347eb138bc5f68a460b43f.tar.zst dexon-solidity-bdb446267332d924eb347eb138bc5f68a460b43f.zip |
No longer exposing retrieveValueFromStorage() as a public function
- plus small fix in EndToEndTests
-rw-r--r-- | SolidityEndToEndTest.cpp | 2 | ||||
-rw-r--r-- | SolidityNameAndTypeResolution.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/SolidityEndToEndTest.cpp b/SolidityEndToEndTest.cpp index 1450095a..5f1a0993 100644 --- a/SolidityEndToEndTest.cpp +++ b/SolidityEndToEndTest.cpp @@ -916,7 +916,7 @@ BOOST_AUTO_TEST_CASE(multiple_elementary_accessors) BOOST_CHECK(callContractFunction("name()") == encodeArgs("Celina")); BOOST_CHECK(callContractFunction("a_hash()") == encodeArgs(dev::sha3(toBigEndian(u256(123))))); BOOST_CHECK(callContractFunction("an_address()") == encodeArgs(toBigEndian(u160(0x1337)))); - BOOST_CHECK(!(callContractFunction("super_secret_data()") == encodeArgs(42))); + BOOST_CHECK(callContractFunction("super_secret_data()") == bytes()); } BOOST_AUTO_TEST_CASE(balance) diff --git a/SolidityNameAndTypeResolution.cpp b/SolidityNameAndTypeResolution.cpp index 979836ec..5ae854bc 100644 --- a/SolidityNameAndTypeResolution.cpp +++ b/SolidityNameAndTypeResolution.cpp @@ -644,7 +644,7 @@ BOOST_AUTO_TEST_CASE(state_variable_accessors) BOOST_CHECK_NO_THROW(source = parseTextAndResolveNamesWithChecks(text)); BOOST_REQUIRE((contract = retrieveContract(source, 0)) != nullptr); FunctionDescription function = retrieveFunctionBySignature(contract, "foo()"); - BOOST_CHECK_MESSAGE(function.getDeclaration() != nullptr, "Could not find the accessor function"); + BOOST_REQUIRE(function.getDeclaration() != nullptr); auto returnParams = function.getReturnParameters(); BOOST_CHECK_EQUAL(returnParams.at(0).getType(), "uint256"); BOOST_CHECK(function.isConstant()); |