aboutsummaryrefslogtreecommitdiffstats
path: root/SolidityNameAndTypeResolution.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-01-30 01:44:14 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-01-30 02:18:50 +0800
commit5da76a3bbdb9c55d7c079b82d6bebfedcd7073b6 (patch)
treeaf022a4aa0d77bec7d7a4d1c62f9dbe5d2dc5503 /SolidityNameAndTypeResolution.cpp
parent866bd01bef58a77631d96cdae37cb2a9e2d86c39 (diff)
downloaddexon-solidity-5da76a3bbdb9c55d7c079b82d6bebfedcd7073b6.tar.gz
dexon-solidity-5da76a3bbdb9c55d7c079b82d6bebfedcd7073b6.tar.zst
dexon-solidity-5da76a3bbdb9c55d7c079b82d6bebfedcd7073b6.zip
FunctionType now returns const ref for Declaration
Diffstat (limited to 'SolidityNameAndTypeResolution.cpp')
-rw-r--r--SolidityNameAndTypeResolution.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/SolidityNameAndTypeResolution.cpp b/SolidityNameAndTypeResolution.cpp
index e330d772..07f2d638 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);
FunctionTypePointer function = retrieveFunctionBySignature(contract, "foo()");
- BOOST_CHECK_MESSAGE(function->getDeclaration() != nullptr, "Could not find the accessor function");
+ BOOST_REQUIRE(function->hasDeclaration());
auto returnParams = function->getReturnParameterTypeNames();
BOOST_CHECK_EQUAL(returnParams.at(0), "uint256");
BOOST_CHECK(function->isConstant());