aboutsummaryrefslogtreecommitdiffstats
path: root/AST.cpp
diff options
context:
space:
mode:
authorGav Wood <g@ethdev.com>2015-01-07 23:32:13 +0800
committerGav Wood <g@ethdev.com>2015-01-07 23:32:13 +0800
commit53e38b3ac96cb9b420d24008dadeb95e44eee980 (patch)
tree2f35e1586fad362814444352299ad2e654b42f3c /AST.cpp
parent95514d1d1b0ab9afdd39e1b35837ecf330362f9f (diff)
parentdf0dce584d2d1aacf3d33658b0540f243b3adb81 (diff)
downloaddexon-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 'AST.cpp')
-rw-r--r--AST.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/AST.cpp b/AST.cpp
index c7d617b4..04771106 100644
--- a/AST.cpp
+++ b/AST.cpp
@@ -110,6 +110,11 @@ void FunctionDefinition::checkTypeRequirements()
m_body->checkTypeRequirements();
}
+string FunctionDefinition::getCanonicalSignature() const
+{
+ return getName() + FunctionType(*this).getCanonicalSignature();
+}
+
void Block::checkTypeRequirements()
{
for (shared_ptr<Statement> const& statement: m_statements)