mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
No longer exposing retrieveValueFromStorage() as a public function
- plus small fix in EndToEndTests
This commit is contained in:
parent
1ea693f3ff
commit
bdb4462673
@ -916,7 +916,7 @@ BOOST_AUTO_TEST_CASE(multiple_elementary_accessors)
|
|||||||
BOOST_CHECK(callContractFunction("name()") == encodeArgs("Celina"));
|
BOOST_CHECK(callContractFunction("name()") == encodeArgs("Celina"));
|
||||||
BOOST_CHECK(callContractFunction("a_hash()") == encodeArgs(dev::sha3(toBigEndian(u256(123)))));
|
BOOST_CHECK(callContractFunction("a_hash()") == encodeArgs(dev::sha3(toBigEndian(u256(123)))));
|
||||||
BOOST_CHECK(callContractFunction("an_address()") == encodeArgs(toBigEndian(u160(0x1337))));
|
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)
|
BOOST_AUTO_TEST_CASE(balance)
|
||||||
|
@ -644,7 +644,7 @@ BOOST_AUTO_TEST_CASE(state_variable_accessors)
|
|||||||
BOOST_CHECK_NO_THROW(source = parseTextAndResolveNamesWithChecks(text));
|
BOOST_CHECK_NO_THROW(source = parseTextAndResolveNamesWithChecks(text));
|
||||||
BOOST_REQUIRE((contract = retrieveContract(source, 0)) != nullptr);
|
BOOST_REQUIRE((contract = retrieveContract(source, 0)) != nullptr);
|
||||||
FunctionDescription function = retrieveFunctionBySignature(contract, "foo()");
|
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();
|
auto returnParams = function.getReturnParameters();
|
||||||
BOOST_CHECK_EQUAL(returnParams.at(0).getType(), "uint256");
|
BOOST_CHECK_EQUAL(returnParams.at(0).getType(), "uint256");
|
||||||
BOOST_CHECK(function.isConstant());
|
BOOST_CHECK(function.isConstant());
|
||||||
|
Loading…
Reference in New Issue
Block a user