Browse Source

parse_URI: amount is in satoshis

283
ThomasV 11 years ago
parent
commit
f43ddf1d8f
  1. 2
      lib/util.py

2
lib/util.py

@ -186,7 +186,7 @@ def parse_URI(uri):
k = int(m.group(2)) - 8 k = int(m.group(2)) - 8
amount = Decimal(m.group(1)) * pow( Decimal(10) , k) amount = Decimal(m.group(1)) * pow( Decimal(10) , k)
else: else:
amount = Decimal(am) amount = Decimal(am) * 100000000
if 'message' in pq: if 'message' in pq:
message = pq['message'][0] message = pq['message'][0]
if 'label' in pq: if 'label' in pq:

Loading…
Cancel
Save