Browse Source

fix bug with make_unsigned_request

283
ThomasV 10 years ago
parent
commit
a8ed934a7f
  1. 4
      lib/paymentrequest.py

4
lib/paymentrequest.py

@ -290,11 +290,11 @@ class PaymentRequest:
def make_unsigned_request(req):
from transaction import Transaction
addr = req['address']
time = req['time']
time = req.get('time', 0)
expires = req.get('exp', 0)
amount = req['amount']
if amount is None:
amount = 0
expires = req['exp']
memo = req['memo']
script = Transaction.pay_script('address', addr).decode('hex')
outputs = [(script, amount)]

Loading…
Cancel
Save