From 76bdcfddf875dd5919389102a6142660d2d70b9c Mon Sep 17 00:00:00 2001 From: jdabbech-ledger Date: Thu, 2 Jan 2025 12:09:37 +0100 Subject: [PATCH] :bug: (dmk): Fix CommandUtils static calls --- .changeset/blue-lemons-impress.md | 5 +++++ .../src/api/command/utils/CommandUtils.ts | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/blue-lemons-impress.md diff --git a/.changeset/blue-lemons-impress.md b/.changeset/blue-lemons-impress.md new file mode 100644 index 000000000..219dfe3fd --- /dev/null +++ b/.changeset/blue-lemons-impress.md @@ -0,0 +1,5 @@ +--- +"@ledgerhq/device-management-kit": patch +--- + +Fix CommandUtils static calls diff --git a/packages/device-management-kit/src/api/command/utils/CommandUtils.ts b/packages/device-management-kit/src/api/command/utils/CommandUtils.ts index 3b51440a4..1bab7acbf 100644 --- a/packages/device-management-kit/src/api/command/utils/CommandUtils.ts +++ b/packages/device-management-kit/src/api/command/utils/CommandUtils.ts @@ -6,7 +6,7 @@ export class CommandUtils { } static isSuccessResponse({ statusCode }: ApduResponse) { - if (!this.isValidStatusCode(statusCode)) { + if (!CommandUtils.isValidStatusCode(statusCode)) { return false; } @@ -14,7 +14,7 @@ export class CommandUtils { } static isLockedDeviceResponse({ statusCode }: ApduResponse) { - if (!this.isValidStatusCode(statusCode)) { + if (!CommandUtils.isValidStatusCode(statusCode)) { return false; }