aboutsummaryrefslogtreecommitdiffstats
path: root/InterfaceHandler.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-01-13 23:15:32 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-01-13 23:15:32 +0800
commitac8ad058cf0cf4fdc73591393eee7f1611560862 (patch)
treeb412864e00ffc25b25b67803070beb86c831cbda /InterfaceHandler.cpp
parent12e000e0d327ead61092c890d0e5a359a9b9a54d (diff)
downloaddexon-solidity-ac8ad058cf0cf4fdc73591393eee7f1611560862.tar.gz
dexon-solidity-ac8ad058cf0cf4fdc73591393eee7f1611560862.tar.zst
dexon-solidity-ac8ad058cf0cf4fdc73591393eee7f1611560862.zip
Natspec method key is now the Canonical Signature
Diffstat (limited to 'InterfaceHandler.cpp')
-rw-r--r--InterfaceHandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/InterfaceHandler.cpp b/InterfaceHandler.cpp
index a5c6f4a1..4c7ae5f4 100644
--- a/InterfaceHandler.cpp
+++ b/InterfaceHandler.cpp
@@ -106,7 +106,7 @@ std::unique_ptr<std::string> InterfaceHandler::getUserDocumentation(ContractDefi
if (!m_notice.empty())
{// since @notice is the only user tag if missing function should not appear
user["notice"] = Json::Value(m_notice);
- methods[it.second->getName()] = user;
+ methods[it.second->getCanonicalSignature()] = user;
}
}
}
@@ -162,7 +162,7 @@ std::unique_ptr<std::string> InterfaceHandler::getDevDocumentation(ContractDefin
method["return"] = m_return;
if (!method.empty()) // add the function, only if we have any documentation to add
- methods[it.second->getName()] = method;
+ methods[it.second->getCanonicalSignature()] = method;
}
}
doc["methods"] = methods;