aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-01-29 01:06:45 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-01-29 04:46:17 +0800
commit4e67aa413e16a00c5056eb388bcf3bb011a7be57 (patch)
tree0d2e6c7679ccd8af1485a12d5e5e471c8595b2d3
parent18eeee536d29e4cf63b106853fc68673729585d3 (diff)
downloaddexon-solidity-4e67aa413e16a00c5056eb388bcf3bb011a7be57.tar.gz
dexon-solidity-4e67aa413e16a00c5056eb388bcf3bb011a7be57.tar.zst
dexon-solidity-4e67aa413e16a00c5056eb388bcf3bb011a7be57.zip
Various fixes pertaining to State Variable accessors
-rw-r--r--SolidityNameAndTypeResolution.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/SolidityNameAndTypeResolution.cpp b/SolidityNameAndTypeResolution.cpp
index bc0edb50..979836ec 100644
--- a/SolidityNameAndTypeResolution.cpp
+++ b/SolidityNameAndTypeResolution.cpp
@@ -76,7 +76,7 @@ ASTPointer<SourceUnit> parseTextAndResolveNamesWithChecks(std::string const& _so
}
catch(boost::exception const& _e)
{
- auto msg = std::string("Parsing text and resolving nanes failed with: \n") + boost::diagnostic_information(_e);
+ auto msg = std::string("Parsing text and resolving names failed with: \n") + boost::diagnostic_information(_e);
BOOST_FAIL(msg);
}
return sourceUnit;
@@ -642,7 +642,7 @@ BOOST_AUTO_TEST_CASE(state_variable_accessors)
ASTPointer<SourceUnit> source;
ContractDefinition const* contract;
BOOST_CHECK_NO_THROW(source = parseTextAndResolveNamesWithChecks(text));
- BOOST_CHECK((contract = retrieveContract(source, 0)) != nullptr);
+ BOOST_REQUIRE((contract = retrieveContract(source, 0)) != nullptr);
FunctionDescription function = retrieveFunctionBySignature(contract, "foo()");
BOOST_CHECK_MESSAGE(function.getDeclaration() != nullptr, "Could not find the accessor function");
auto returnParams = function.getReturnParameters();