diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-06-22 20:00:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-22 20:00:19 +0800 |
commit | f823952d9f0cc1e37dec465111db976c7a1830b2 (patch) | |
tree | e16fd2565c56d2a0f0c9d11e9fbc63c98f3120be /libsolidity/interface/CompilerStack.cpp | |
parent | a95f057e37b746359a7426e95da32e3236f0603a (diff) | |
parent | ba7d698ee67181afc92fd90d18487245cb303389 (diff) | |
download | dexon-solidity-f823952d9f0cc1e37dec465111db976c7a1830b2.tar dexon-solidity-f823952d9f0cc1e37dec465111db976c7a1830b2.tar.gz dexon-solidity-f823952d9f0cc1e37dec465111db976c7a1830b2.tar.bz2 dexon-solidity-f823952d9f0cc1e37dec465111db976c7a1830b2.tar.lz dexon-solidity-f823952d9f0cc1e37dec465111db976c7a1830b2.tar.xz dexon-solidity-f823952d9f0cc1e37dec465111db976c7a1830b2.tar.zst dexon-solidity-f823952d9f0cc1e37dec465111db976c7a1830b2.zip |
Merge pull request #2404 from ethereum/methodidentifiers
Clean up method identifiers handling in CLI/CompilerStack
Diffstat (limited to 'libsolidity/interface/CompilerStack.cpp')
-rw-r--r-- | libsolidity/interface/CompilerStack.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libsolidity/interface/CompilerStack.cpp b/libsolidity/interface/CompilerStack.cpp index b09108b0..8be2c8dd 100644 --- a/libsolidity/interface/CompilerStack.cpp +++ b/libsolidity/interface/CompilerStack.cpp @@ -481,12 +481,12 @@ Json::Value const& CompilerStack::natspec(Contract const& _contract, Documentati return *(*doc); } -Json::Value CompilerStack::functionHashes(ContractDefinition const& _contract) +Json::Value CompilerStack::methodIdentifiers(string const& _contractName) const { - Json::Value functionHashes(Json::objectValue); - for (auto const& it: _contract.interfaceFunctions()) - functionHashes[it.second->externalSignature()] = toHex(it.first.ref()); - return functionHashes; + Json::Value methodIdentifiers(Json::objectValue); + for (auto const& it: contractDefinition(_contractName).interfaceFunctions()) + methodIdentifiers[it.second->externalSignature()] = toHex(it.first.ref()); + return methodIdentifiers; } string const& CompilerStack::onChainMetadata(string const& _contractName) const |