Skip to content

Commit

Permalink
follow-up 56e685f: amount_sat may be None or max
Browse files Browse the repository at this point in the history
  • Loading branch information
ecdsa committed Apr 1, 2023
1 parent d0947bc commit 9eb59fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion electrum/invoices.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def as_dict(self, status):
'status': status,
'status_str': self.get_status_str(status),
'id': self.get_id(),
'amount_sat': int(self.get_amount_sat()),
'amount_sat': self.get_amount_sat(),
}
if self.is_lightning():
d['amount_msat'] = self.get_amount_msat()
Expand Down

0 comments on commit 9eb59fc

Please sign in to comment.