mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Allow including hashes of method signatures in --combined-json output
This commit is contained in:
1 parent
6b052249da
commit
2e816967d3
3 files changed
+14
No files matched your search
@@ -481,6 +481,14 @@ Json::Value const& CompilerStack::natspec(Contract const& _contract, Documentati
|
||||
return *(*doc);
|
||||
}
|
||||
|
||||
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();
|
||||
return functionHashes;
|
||||
}
|
||||
|
||||
string const& CompilerStack::onChainMetadata(string const& _contractName) const
|
||||
{
|
||||
if (m_stackState != CompilationSuccessful)
|
||||
|
||||
Reference in new issue
Block a user