diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-06-15 18:23:22 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-06-22 18:13:06 +0800 |
commit | 63395b31af701dee20abcf730b0bd3c660cc48e8 (patch) | |
tree | ac688ac07064e8242fbf23fc5ef38f8d7097c2bb /libsolidity/interface | |
parent | 3094e777486c40c91c6cf3432ad60f29b9ada484 (diff) | |
download | dexon-solidity-63395b31af701dee20abcf730b0bd3c660cc48e8.tar.gz dexon-solidity-63395b31af701dee20abcf730b0bd3c660cc48e8.tar.zst dexon-solidity-63395b31af701dee20abcf730b0bd3c660cc48e8.zip |
Use compilerStack.functionHashes in StandardCompiler
Diffstat (limited to 'libsolidity/interface')
-rw-r--r-- | libsolidity/interface/StandardCompiler.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/libsolidity/interface/StandardCompiler.cpp b/libsolidity/interface/StandardCompiler.cpp index d5dbaa46..b870e0ea 100644 --- a/libsolidity/interface/StandardCompiler.cpp +++ b/libsolidity/interface/StandardCompiler.cpp @@ -115,14 +115,6 @@ StringMap createSourceList(Json::Value const& _input) return sources; } -Json::Value methodIdentifiers(ContractDefinition const& _contract) -{ - Json::Value methodIdentifiers(Json::objectValue); - for (auto const& it: _contract.interfaceFunctions()) - methodIdentifiers[it.second->externalSignature()] = toHex(it.first.ref()); - return methodIdentifiers; -} - Json::Value formatLinkReferences(std::map<size_t, std::string> const& linkReferences) { Json::Value ret(Json::objectValue); @@ -404,7 +396,7 @@ Json::Value StandardCompiler::compileInternal(Json::Value const& _input) m_compilerStack.streamAssembly(tmp, contractName, createSourceList(_input), false); evmData["assembly"] = tmp.str(); evmData["legacyAssembly"] = m_compilerStack.streamAssembly(tmp, contractName, createSourceList(_input), true); - evmData["methodIdentifiers"] = methodIdentifiers(m_compilerStack.contractDefinition(contractName)); + evmData["methodIdentifiers"] = m_compilerStack.functionHashes(m_compilerStack.contractDefinition(contractName)); evmData["gasEstimates"] = m_compilerStack.gasEstimates(contractName); evmData["bytecode"] = collectEVMObject( |