diff options
author | Gav Wood <g@ethdev.com> | 2015-01-07 23:32:13 +0800 |
---|---|---|
committer | Gav Wood <g@ethdev.com> | 2015-01-07 23:32:13 +0800 |
commit | 53e38b3ac96cb9b420d24008dadeb95e44eee980 (patch) | |
tree | 2f35e1586fad362814444352299ad2e654b42f3c /Types.cpp | |
parent | 95514d1d1b0ab9afdd39e1b35837ecf330362f9f (diff) | |
parent | df0dce584d2d1aacf3d33658b0540f243b3adb81 (diff) | |
download | dexon-solidity-53e38b3ac96cb9b420d24008dadeb95e44eee980.tar.gz dexon-solidity-53e38b3ac96cb9b420d24008dadeb95e44eee980.tar.zst dexon-solidity-53e38b3ac96cb9b420d24008dadeb95e44eee980.zip |
Merge pull request #738 from LefterisJP/sol_abiFunctionHash
Canonical Function signature creation in solidity
Diffstat (limited to 'Types.cpp')
-rw-r--r-- | Types.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -484,6 +484,16 @@ unsigned FunctionType::getSizeOnStack() const } } +string FunctionType::getCanonicalSignature() const +{ + string ret = "("; + + for (auto it = m_parameterTypes.cbegin(); it != m_parameterTypes.cend(); ++it) + ret += (*it)->toString() + (it + 1 == m_parameterTypes.cend() ? "" : ","); + + return ret + ")"; +} + bool MappingType::operator==(Type const& _other) const { if (_other.getCategory() != getCategory()) |