Skip to content

Commit

Permalink
format (#668)
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc authored Nov 6, 2024
1 parent d8a90d4 commit 9197663
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cashu/lightning/fake.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
from bolt11 import (
Bolt11,
Feature,
FeatureState,
Features,
FeatureState,
MilliSatoshi,
TagChar,
Tags,
Expand Down Expand Up @@ -93,7 +93,12 @@ async def create_invoice(
) -> InvoiceResponse:
self.assert_unit_supported(amount.unit)
tags = Tags()
tags.add(TagChar.features, Features.from_feature_list({Feature.payment_secret: FeatureState.supported}))
tags.add(
TagChar.features,
Features.from_feature_list(
{Feature.payment_secret: FeatureState.supported}
),
)

if description_hash:
tags.add(TagChar.description_hash, description_hash.hex())
Expand Down

0 comments on commit 9197663

Please sign in to comment.