Skip to content

Commit

Permalink
Merge branch 'swap-statef-testing' of https://github.com/ranchimall/f…
Browse files Browse the repository at this point in the history
…lo-token-tracking into swap-statef-testing
  • Loading branch information
Vivek Teega committed Apr 29, 2023
2 parents 0966070 + 15bc31c commit bf4684c
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 @@ -886,7 +886,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 bf4684c

Please sign in to comment.