Skip to content

Commit

Permalink
allow method of nonexisting units
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc committed Nov 3, 2024
1 parent ba1604c commit f1414af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cashu/mint/verification.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,8 @@ def _verify_and_get_unit_method(
method = Method[method_str]
unit = Unit[unit_str]

if not any([unit == k.unit for k in self.keysets.values()]):
raise NotAllowedError(f"unit '{unit.name}' not supported in any keyset.")
# if not any([unit == k.unit for k in self.keysets.values()]):
# raise NotAllowedError(f"unit '{unit.name}' not supported in any keyset.")

if not self.backends.get(method) or unit not in self.backends[method]:
raise NotAllowedError(
Expand Down

0 comments on commit f1414af

Please sign in to comment.