From b7505e29824e9876643331951882665ff323f961 Mon Sep 17 00:00:00 2001 From: Nikhil Parasaram Date: Fri, 27 Jul 2018 00:40:57 +0530 Subject: [PATCH] Send a list for signatures --- mythril/support/signatures.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mythril/support/signatures.py b/mythril/support/signatures.py index e1582b68..ae432af8 100644 --- a/mythril/support/signatures.py +++ b/mythril/support/signatures.py @@ -154,8 +154,9 @@ class SignatureDb(object): """ if not sighash.startswith("0x"): sighash = "0x%s" % sighash # normalize sighash format - - if self.enable_online_lookup and not self.signatures.get(sighash) and sighash not in self.online_lookup_miss and time.time() > self.online_directory_unavailable_until: + if self.signatures.get(sighash): + return [self.signatures[sighash]] + if self.enable_online_lookup and sighash not in self.online_lookup_miss and time.time() > self.online_directory_unavailable_until: # online lookup enabled, and signature not in cache, sighash was not a miss earlier, and online directory not down logging.debug("Signatures: performing online lookup for sighash %r" % sighash) try: