This commit is contained in:
ThomasV
2020-06-02 16:32:07 +02:00
parent 84a8b6af1f
commit cfdfbd2bfe
2 changed files with 6 additions and 6 deletions

View File

@@ -317,17 +317,17 @@ class PaymentRequest:
def make_unsigned_request(req):
from .transaction import Transaction
addr = req['address']
time = req.get('time', 0)
exp = req.get('exp', 0)
addr = req.get_address()
time = req.time
exp = req.exp
if time and type(time) != int:
time = 0
if exp and type(exp) != int:
exp = 0
amount = req['amount']
amount = req.amount
if amount is None:
amount = 0
memo = req['memo']
memo = req.message
script = bfh(address_to_script(addr))
outputs = [(script, amount)]
pd = pb2.PaymentDetails()