aboutsummaryrefslogtreecommitdiffstats
path: root/Types.cpp
diff options
context:
space:
mode:
authorLiana Husikyan <liana@ethdev.com>2015-03-24 01:08:45 +0800
committerLiana Husikyan <liana@ethdev.com>2015-03-25 20:59:46 +0800
commit701b34fbeb1bd08445aad55f82672d35343f5a44 (patch)
treec279a47bba724163fc3f5d78e5a8f1742be4e45e /Types.cpp
parente3ea90e997caf1d316252ad16ecb14c4d6163da5 (diff)
downloaddexon-solidity-701b34fbeb1bd08445aad55f82672d35343f5a44.tar.gz
dexon-solidity-701b34fbeb1bd08445aad55f82672d35343f5a44.tar.zst
dexon-solidity-701b34fbeb1bd08445aad55f82672d35343f5a44.zip
renamed getCanonicalSignature
added externalTypes instead of types for interface functions added simple test todo testing
Diffstat (limited to 'Types.cpp')
-rw-r--r--Types.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/Types.cpp b/Types.cpp
index 7b4d1de2..28a3af33 100644
--- a/Types.cpp
+++ b/Types.cpp
@@ -1127,7 +1127,7 @@ MemberList const& FunctionType::getMembers() const
}
}
-string FunctionType::getCanonicalSignature(std::string const& _name) const
+string FunctionType::externalTypes(std::string const& _name) const
{
std::string funcName = _name;
if (_name == "")
@@ -1138,8 +1138,10 @@ string FunctionType::getCanonicalSignature(std::string const& _name) const
string ret = funcName + "(";
for (auto it = m_parameterTypes.cbegin(); it != m_parameterTypes.cend(); ++it)
- ret += (*it)->toString() + (it + 1 == m_parameterTypes.cend() ? "" : ",");
-
+ {
+ solAssert(!!(*it)->externalType(), "Parameter should have external type");
+ ret += (*it)->externalType()->toString() + (it + 1 == m_parameterTypes.cend() ? "" : ",");
+ }
return ret + ")";
}