Reverted functionHashes output to use method signature as keys

This commit is contained in:
Edward Ruchevits 2017-06-13 18:04:33 +01:00
parent 7c7df6f38b
commit 5f7bca94e5

View File

@ -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;
}