Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
minibits-cash committed Dec 11, 2024
1 parent 60df270 commit 2b51a7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CashuWallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ class CashuWallet {
* @returns
*/
async checkProofsStates(proofs: Array<Proof>): Promise<{
[CheckStateEnum: string]: Proof[]
[key in CheckStateEnum]: Proof[]
}
> {
const enc = new TextEncoder();
Expand Down Expand Up @@ -906,7 +906,7 @@ class CashuWallet {
const proofsByState = {
SPENT: proofs.filter(p => states.some(s => s.Y === hashToCurve(enc.encode(p.secret)).toHex(true) && s.state === CheckStateEnum.SPENT)),
PENDING: proofs.filter(p => states.some(s => s.Y === hashToCurve(enc.encode(p.secret)).toHex(true) && s.state === CheckStateEnum.PENDING)),
UNSEPNT: proofs.filter(p => states.some(s => s.Y === hashToCurve(enc.encode(p.secret)).toHex(true) && s.state === CheckStateEnum.UNSPENT))
UNSPENT: proofs.filter(p => states.some(s => s.Y === hashToCurve(enc.encode(p.secret)).toHex(true) && s.state === CheckStateEnum.UNSPENT))
}

return proofsByState;
Expand Down

0 comments on commit 2b51a7b

Please sign in to comment.