From 5f7bca94e5174738aea294c51f4bea2f8b450d0d Mon Sep 17 00:00:00 2001 From: Edward Ruchevits Date: Tue, 13 Jun 2017 18:04:33 +0100 Subject: Reverted functionHashes output to use method signature as keys --- libsolidity/interface/CompilerStack.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit