Skip to content

Commit fa47daa

Browse files
committed
bolt12: fix LnAddr tag use in bolt12.to_lnaddr
1 parent 59a86cd commit fa47daa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

electrum/bolt12.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,10 @@ class WrappedBytesKey:
139139
fallbacks = data.get('invoice_fallbacks', [])
140140
fallbacks = list(filter(lambda x: x['version'] <= 16 and 2 <= len(x['address'] <= 40), fallbacks))
141141
if fallbacks:
142-
addr.tags['f'] = fallbacks[0]
142+
addr.tags.append(('f', fallbacks[0]))
143143
exp = data.get('invoice_relative_expiry', {}).get('seconds_from_creation', 0)
144144
if exp:
145-
addr.tags['x'] = int(exp)
145+
addr.tags.append(('x', int(exp)))
146146

147147
return addr
148148

0 commit comments

Comments
 (0)