git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
af08e70
)
parse_URI: amount is in satoshis
author
ThomasV
<thomasv@gitorious>
Sun, 15 Jun 2014 07:26:52 +0000 (09:26 +0200)
committer
ThomasV
<thomasv@gitorious>
Sun, 15 Jun 2014 07:26:52 +0000 (09:26 +0200)
lib/util.py
patch
|
blob
|
history
diff --git
a/lib/util.py
b/lib/util.py
index
7f4e67a
..
97906eb
100644
(file)
--- a/
lib/util.py
+++ b/
lib/util.py
@@
-186,7
+186,7
@@
def parse_URI(uri):
k = int(m.group(2)) - 8
amount = Decimal(m.group(1)) * pow( Decimal(10) , k)
else:
- amount = Decimal(am)
+ amount = Decimal(am) * 100000000
if 'message' in pq:
message = pq['message'][0]
if 'label' in pq: