-
-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] [NUTs] NUT-06 update: deprecate amount field in /split
#263
Conversation
@@ -862,9 +857,9 @@ async def check_fees(self, pr: str): | |||
async def split( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing order of kwargs, safter to add the 'magic' asterisk?
async def split(
self,
*,
...
):
to force calling with kwargs?
cashu/mint/ledger.py
Outdated
prom_fst, prom_snd = await self._generate_promises( | ||
B_fst, keyset | ||
), await self._generate_promises(B_snd, keyset) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just for readability, doesn't need to be a tuple that then gets decomposed anyway
prom_fst, prom_snd = await self._generate_promises( | |
B_fst, keyset | |
), await self._generate_promises(B_snd, keyset) | |
prom_fst = await self._generate_promises(B_fst, keyset) | |
prom_snd = await self._generate_promises(B_snd, keyset) |
eb0541e
to
1ca9b17
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #263 +/- ##
==========================================
- Coverage 56.59% 56.44% -0.16%
==========================================
Files 43 43
Lines 3963 3974 +11
==========================================
Hits 2243 2243
- Misses 1720 1731 +11
☔ View full report in Codecov by Sentry. |
Addresses cashubtc/nuts#34
Makes the code so much better to read.