mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix for exception if function hashes not requested.
This commit is contained in:
parent
a9d5cba6b2
commit
b5491873bc
@ -175,6 +175,9 @@ void CommandLineInterface::handleBytecode(string const& _contract)
|
||||
|
||||
void CommandLineInterface::handleSignatureHashes(string const& _contract)
|
||||
{
|
||||
if (!m_args.count(g_argSignatureHashes))
|
||||
return;
|
||||
|
||||
string out;
|
||||
for (auto const& it: m_compiler->getContractDefinition(_contract).getInterfaceFunctions())
|
||||
out += toHex(it.first.ref()) + ": " + it.second->externalSignature() + "\n";
|
||||
|
Loading…
Reference in New Issue
Block a user