diff options
author | Liana Husikyan <liana@ethdev.com> | 2015-03-25 20:58:15 +0800 |
---|---|---|
committer | Liana Husikyan <liana@ethdev.com> | 2015-03-25 21:20:13 +0800 |
commit | 8f747aab0f977e62c344f57fe922ba6b0fda3a64 (patch) | |
tree | f90a3d47e3b0dafcbd4f16094edf7f6bf69de1d5 /Types.cpp | |
parent | 9986b072ad471908df4402ef860e58e331035948 (diff) | |
download | dexon-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.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 + ")"; } |