Skip to content

Commit

Permalink
Incorrect parameter type for MultiChainPayment
Browse files Browse the repository at this point in the history
The BitcoinAddress value is still incorrect. The BitcoinAddress value
should be retrieved through Electrum (#38)
  • Loading branch information
joswinter authored and devos50 committed Nov 28, 2016
1 parent 3933d4b commit 0793acf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Tribler/community/market/core/transaction_manager.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import logging

from payment import MultiChainPayment, BitcoinPayment
from bitcoin_address import BitcoinAddress
from price import Price
from quantity import Quantity
from timeout import Timeout
Expand Down Expand Up @@ -64,7 +65,8 @@ def create_from_start_transaction(self, start_transaction, price, quantity, time

def create_multi_chain_payment(self, message_id, transaction):
payment = transaction.next_payment()
multi_chain_payment = MultiChainPayment(message_id, transaction.transaction_id, '', payment[0], payment[1],
multi_chain_payment = MultiChainPayment(message_id, transaction.transaction_id, BitcoinAddress(''), payment[0],
payment[1],
Timestamp.now())
transaction.add_payment(multi_chain_payment)
self.transaction_repository.update(transaction)
Expand Down

0 comments on commit 0793acf

Please sign in to comment.