aboutsummaryrefslogtreecommitdiffstats
path: root/Types.cpp
diff options
context:
space:
mode:
authorLiana Husikyan <liana@ethdev.com>2015-03-25 20:58:15 +0800
committerLiana Husikyan <liana@ethdev.com>2015-03-25 21:20:13 +0800
commit8f747aab0f977e62c344f57fe922ba6b0fda3a64 (patch)
treef90a3d47e3b0dafcbd4f16094edf7f6bf69de1d5 /Types.cpp
parent9986b072ad471908df4402ef860e58e331035948 (diff)
downloaddexon-solidity-8f747aab0f977e62c344f57fe922ba6b0fda3a64.tar.gz
dexon-solidity-8f747aab0f977e62c344f57fe922ba6b0fda3a64.tar.zst
dexon-solidity-8f747aab0f977e62c344f57fe922ba6b0fda3a64.zip
tests for external types
Diffstat (limited to 'Types.cpp')
-rw-r--r--Types.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/Types.cpp b/Types.cpp
index 6344d128..1776413a 100644
--- a/Types.cpp
+++ b/Types.cpp
@@ -1127,7 +1127,7 @@ MemberList const& FunctionType::getMembers() const
}
}
-string FunctionType::externalSignature(std::string const& _name) const
+string FunctionType::externalSignature(bool isExternalCall, std::string const& _name) const
{
std::string funcName = _name;
if (_name == "")
@@ -1139,8 +1139,9 @@ string FunctionType::externalSignature(std::string const& _name) const
for (auto it = m_parameterTypes.cbegin(); it != m_parameterTypes.cend(); ++it)
{
- solAssert(!!(*it)->externalType(), "Parameter should have external type");
- ret += (*it)->externalType()->toString() + (it + 1 == m_parameterTypes.cend() ? "" : ",");
+ if (isExternalCall)
+ solAssert(!!(*it)->externalType(), "Parameter should have external type");
+ ret += (isExternalCall ? (*it)->externalType()->toString() : (*it)->toString()) + (it + 1 == m_parameterTypes.cend() ? "" : ",");
}
return ret + ")";
}