From a6d08950c6a81de3698ea8be01d2d5c472fe41e6 Mon Sep 17 00:00:00 2001 From: chriseth Date: Tue, 21 Apr 2015 10:59:48 +0200 Subject: bytes parameters for events and sha3. --- Types.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Types.cpp') 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"); -- cgit v1.2.3