aboutsummaryrefslogtreecommitdiffstats
path: root/Types.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-01-07 17:45:59 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-01-07 17:45:59 +0800
commitdf0dce584d2d1aacf3d33658b0540f243b3adb81 (patch)
tree3c5835c1a4337d20fbdd44fdaf80eebc59796398 /Types.cpp
parent24d7bdd3a9b9014e1e58dbe44f501fbfdec564c5 (diff)
downloaddexon-solidity-df0dce584d2d1aacf3d33658b0540f243b3adb81.tar.gz
dexon-solidity-df0dce584d2d1aacf3d33658b0540f243b3adb81.tar.zst
dexon-solidity-df0dce584d2d1aacf3d33658b0540f243b3adb81.zip
Small issues with Canonical Function Signature
- Also added an extra test
Diffstat (limited to 'Types.cpp')
-rw-r--r--Types.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/Types.cpp b/Types.cpp
index 640a34ca..7a4c45c6 100644
--- a/Types.cpp
+++ b/Types.cpp
@@ -452,13 +452,12 @@ unsigned FunctionType::getSizeOnStack() const
}
}
-std::string FunctionType::getCanonicalSignature() const
+string FunctionType::getCanonicalSignature() const
{
- auto parameters = getParameterTypes();
- std::string ret = "NAME("; //TODO: how to get function name from FunctionType
+ string ret = "(";
- for (auto it = parameters.cbegin(); it != parameters.cend(); ++it)
- ret += (*it)->toString() + (it + 1 == m_parameterTypes.end() ? "" : ",");
+ for (auto it = m_parameterTypes.cbegin(); it != m_parameterTypes.cend(); ++it)
+ ret += (*it)->toString() + (it + 1 == m_parameterTypes.cend() ? "" : ",");
return ret + ")";
}