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; }