diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2015-01-29 23:48:39 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2015-01-30 00:12:17 +0800 |
commit | 866bd01bef58a77631d96cdae37cb2a9e2d86c39 (patch) | |
tree | b46da71aab673c40a8ac2feeb47aa4d327a847e1 /SolidityNameAndTypeResolution.cpp | |
parent | e77fc5c7e0df59e86df848f7ec88a419fdd66183 (diff) | |
download | dexon-solidity-866bd01bef58a77631d96cdae37cb2a9e2d86c39.tar.gz dexon-solidity-866bd01bef58a77631d96cdae37cb2a9e2d86c39.tar.zst dexon-solidity-866bd01bef58a77631d96cdae37cb2a9e2d86c39.zip |
Removing Function and Param Description
- Removing FunctionDescription and ParamDescription. All the data should
now be in the FunctionType
- Plus using the FunctionTypePointer alias in a few places
Diffstat (limited to 'SolidityNameAndTypeResolution.cpp')
-rw-r--r-- | SolidityNameAndTypeResolution.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/SolidityNameAndTypeResolution.cpp b/SolidityNameAndTypeResolution.cpp index 26406e1f..e330d772 100644 --- a/SolidityNameAndTypeResolution.cpp +++ b/SolidityNameAndTypeResolution.cpp @@ -93,8 +93,8 @@ static ContractDefinition const* retrieveContract(ASTPointer<SourceUnit> _source return NULL; } -static std::shared_ptr<FunctionType const> const& retrieveFunctionBySignature(ContractDefinition const* _contract, - std::string const& _signature) +static FunctionTypePointer const& retrieveFunctionBySignature(ContractDefinition const* _contract, + std::string const& _signature) { FixedHash<4> hash(dev::sha3(_signature)); return _contract->getInterfaceFunctions()[hash]; @@ -643,7 +643,7 @@ BOOST_AUTO_TEST_CASE(state_variable_accessors) ContractDefinition const* contract; BOOST_CHECK_NO_THROW(source = parseTextAndResolveNamesWithChecks(text)); BOOST_REQUIRE((contract = retrieveContract(source, 0)) != nullptr); - std::shared_ptr<FunctionType const> function = retrieveFunctionBySignature(contract, "foo()"); + FunctionTypePointer function = retrieveFunctionBySignature(contract, "foo()"); BOOST_CHECK_MESSAGE(function->getDeclaration() != nullptr, "Could not find the accessor function"); auto returnParams = function->getReturnParameterTypeNames(); BOOST_CHECK_EQUAL(returnParams.at(0), "uint256"); |