1
0

payment requests: cmdline fixes

This commit is contained in:
ThomasV
2015-07-11 21:09:56 +02:00
parent fbc23a61a3
commit da55d9ed6e
2 changed files with 4 additions and 4 deletions

View File

@@ -1280,10 +1280,10 @@ class Abstract_Wallet(object):
src = os.path.join(os.path.dirname(__file__), 'www', 'index.html')
shutil.copy(src, index)
key = req.get('id', addr)
pr = paymentrequest.make_request(config, req)
pr, requestor = paymentrequest.make_request(config, req)
path = os.path.join(rdir, key + '.bip70')
with open(path, 'w') as f:
f.write(pr)
f.write(pr.SerializeToString())
# reload
req = self.get_payment_request(addr, config)
with open(os.path.join(rdir, key + '.json'), 'w') as f: