Skip to content

Commit

Permalink
Merge pull request #97 from bjarnemagnussen/fix-smartbit
Browse files Browse the repository at this point in the history
Fixes Smartbit when fecthing all transactions
  • Loading branch information
bjarnemagnussen authored Jan 28, 2020
2 parents 10b9aa6 + 225754d commit a17bff6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bit/network/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def get_transactions(cls, address):
transactions = []

if 'transactions' in data:
transactions.extend(t['hash'] for t in data['transactions'])
transactions.extend(t['txid'] for t in data['transactions'])

return transactions

Expand All @@ -359,7 +359,7 @@ def get_transactions_testnet(cls, address):
transactions = []

if 'transactions' in data:
transactions.extend(t['hash'] for t in data['transactions'])
transactions.extend(t['txid'] for t in data['transactions'])

return transactions

Expand Down

0 comments on commit a17bff6

Please sign in to comment.