Skip to content

Commit

Permalink
Fix for multisig support
Browse files Browse the repository at this point in the history
  • Loading branch information
ranchimalldev committed Apr 26, 2023
1 parent e0d013c commit 15bc31c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tracktokens_smartcontracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,9 @@ def processTransaction(transaction_data, parsed_data, blockinfo):
addresscounter = 0
inputcounter = 0
for obj in transaction_data["vout"]:
if obj["scriptPubKey"]["type"] == "pubkeyhash":
if 'type' not in obj["scriptPubKey"].keys():
continue
if obj["scriptPubKey"]["type"] in ["pubkeyhash","scripthash"]:
addresscounter = addresscounter + 1
if inputlist[0] == obj["scriptPubKey"]["addresses"][0]:
inputcounter = inputcounter + 1
Expand Down

0 comments on commit 15bc31c

Please sign in to comment.