diff options
author | Liana Husikyan <liana@ethdev.com> | 2015-03-24 01:08:45 +0800 |
---|---|---|
committer | Liana Husikyan <liana@ethdev.com> | 2015-03-25 20:59:46 +0800 |
commit | 701b34fbeb1bd08445aad55f82672d35343f5a44 (patch) | |
tree | c279a47bba724163fc3f5d78e5a8f1742be4e45e /Types.cpp | |
parent | e3ea90e997caf1d316252ad16ecb14c4d6163da5 (diff) | |
download | dexon-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.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 + ")"; } |