We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59a86cd commit fa47daaCopy full SHA for fa47daa
electrum/bolt12.py
@@ -139,10 +139,10 @@ class WrappedBytesKey:
139
fallbacks = data.get('invoice_fallbacks', [])
140
fallbacks = list(filter(lambda x: x['version'] <= 16 and 2 <= len(x['address'] <= 40), fallbacks))
141
if fallbacks:
142
- addr.tags['f'] = fallbacks[0]
+ addr.tags.append(('f', fallbacks[0]))
143
exp = data.get('invoice_relative_expiry', {}).get('seconds_from_creation', 0)
144
if exp:
145
- addr.tags['x'] = int(exp)
+ addr.tags.append(('x', int(exp)))
146
147
return addr
148
0 commit comments