aboutsummaryrefslogtreecommitdiffstats
path: root/CommandLineInterface.cpp
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-05-05 23:08:30 +0800
committerchriseth <c@ethdev.com>2015-05-05 23:08:30 +0800
commitb5491873bc5d430ee66874857d00ada5260bef07 (patch)
tree9e25dff4383ed5e5a3d0831f51a046666cfc9745 /CommandLineInterface.cpp
parenta9d5cba6b2c6a5ce8ec6e898e4e7291958544661 (diff)
downloaddexon-solidity-b5491873bc5d430ee66874857d00ada5260bef07.tar
dexon-solidity-b5491873bc5d430ee66874857d00ada5260bef07.tar.gz
dexon-solidity-b5491873bc5d430ee66874857d00ada5260bef07.tar.bz2
dexon-solidity-b5491873bc5d430ee66874857d00ada5260bef07.tar.lz
dexon-solidity-b5491873bc5d430ee66874857d00ada5260bef07.tar.xz
dexon-solidity-b5491873bc5d430ee66874857d00ada5260bef07.tar.zst
dexon-solidity-b5491873bc5d430ee66874857d00ada5260bef07.zip
Fix for exception if function hashes not requested.
Diffstat (limited to 'CommandLineInterface.cpp')
-rw-r--r--CommandLineInterface.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/CommandLineInterface.cpp b/CommandLineInterface.cpp
index 0d5f4724..e6f03a2e 100644
--- a/CommandLineInterface.cpp
+++ b/CommandLineInterface.cpp
@@ -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";