aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorEdward Ruchevits <ruchevits@gmail.com>2017-06-14 01:04:33 +0800
committerEdward Ruchevits <ruchevits@gmail.com>2017-06-14 01:04:33 +0800
commit5f7bca94e5174738aea294c51f4bea2f8b450d0d (patch)
tree135e5eeef69a09acb663fee55331a8122da513cc /libsolidity
parent7c7df6f38b4943e17d2443bfbf6db393e837e6c7 (diff)
downloaddexon-solidity-5f7bca94e5174738aea294c51f4bea2f8b450d0d.tar.gz
dexon-solidity-5f7bca94e5174738aea294c51f4bea2f8b450d0d.tar.zst
dexon-solidity-5f7bca94e5174738aea294c51f4bea2f8b450d0d.zip
Reverted functionHashes output to use method signature as keys
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/interface/CompilerStack.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/interface/CompilerStack.cpp b/libsolidity/interface/CompilerStack.cpp
index 234539ea..b09108b0 100644
--- a/libsolidity/interface/CompilerStack.cpp
+++ b/libsolidity/interface/CompilerStack.cpp
@@ -485,7 +485,7 @@ Json::Value CompilerStack::functionHashes(ContractDefinition const& _contract)
{
Json::Value functionHashes(Json::objectValue);
for (auto const& it: _contract.interfaceFunctions())
- functionHashes[toHex(it.first.ref())] = it.second->externalSignature();
+ functionHashes[it.second->externalSignature()] = toHex(it.first.ref());
return functionHashes;
}