Skip to content

Commit

Permalink
🐛 (dmk): Fix CommandUtils static calls
Browse files Browse the repository at this point in the history
  • Loading branch information
jdabbech-ledger committed Jan 2, 2025
1 parent 47b61b5 commit 0034834
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/blue-lemons-impress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ledgerhq/device-management-kit": patch
---

Fix CommandUtils static calls
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ export class CommandUtils {
}

static isSuccessResponse({ statusCode }: ApduResponse) {
if (!this.isValidStatusCode(statusCode)) {
if (!CommandUtils.isValidStatusCode(statusCode)) {
return false;
}

return statusCode[0] === 0x90 && statusCode[1] === 0x00;
}

static isLockedDeviceResponse({ statusCode }: ApduResponse) {
if (!this.isValidStatusCode(statusCode)) {
if (!CommandUtils.isValidStatusCode(statusCode)) {
return false;
}

Expand Down

0 comments on commit 0034834

Please sign in to comment.