aboutsummaryrefslogtreecommitdiffstats
path: root/Types.cpp
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-04-21 16:59:48 +0800
committerchriseth <c@ethdev.com>2015-04-22 17:43:49 +0800
commita6d08950c6a81de3698ea8be01d2d5c472fe41e6 (patch)
treef1c74eb23c8e8cf351d08ea9c07682d78db1b0b5 /Types.cpp
parenta44bcb6909478543151cac871fdbbc4909ad54aa (diff)
downloaddexon-solidity-a6d08950c6a81de3698ea8be01d2d5c472fe41e6.tar.gz
dexon-solidity-a6d08950c6a81de3698ea8be01d2d5c472fe41e6.tar.zst
dexon-solidity-a6d08950c6a81de3698ea8be01d2d5c472fe41e6.zip
bytes parameters for events and sha3.
Diffstat (limited to 'Types.cpp')
-rw-r--r--Types.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Types.cpp b/Types.cpp
index a445d56e..19bc134e 100644
--- a/Types.cpp
+++ b/Types.cpp
@@ -745,8 +745,6 @@ string ArrayType::toString() const
TypePointer ArrayType::externalType() const
{
- if (m_location != Location::CallData)
- return TypePointer();
if (m_isByteArray)
return shared_from_this();
if (!m_baseType->externalType())
@@ -1218,7 +1216,9 @@ string FunctionType::externalSignature(std::string const& _name) const
}
string ret = funcName + "(";
- TypePointers externalParameterTypes = externalFunctionType()->getParameterTypes();
+ FunctionTypePointer external = externalFunctionType();
+ solAssert(!!external, "External function type requested.");
+ TypePointers externalParameterTypes = external->getParameterTypes();
for (auto it = externalParameterTypes.cbegin(); it != externalParameterTypes.cend(); ++it)
{
solAssert(!!(*it), "Parameter should have external type");