Skip to content

Commit d8a014e

Browse files
chore(hardware-ledger): remove device model guard
1 parent 5fd31f2 commit d8a014e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

packages/hardware-ledger/src/LedgerKeyAgent.ts

-5
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,6 @@ const stakeCredentialCert = (cert: Certificate) =>
9898
cert.type === CertificateType.STAKE_REGISTRATION ||
9999
cert.type === CertificateType.STAKE_DEREGISTRATION ||
100100
cert.type === CertificateType.STAKE_DELEGATION;
101-
const isLedgerModelSupported = (deviceModelId: string): deviceModelId is 'nanoS' | 'nanoX' | 'nanoSP' =>
102-
['nanoS', 'nanoX', 'nanoSP'].includes(deviceModelId);
103101

104102
const establishDeviceConnectionMethodName = 'establishDeviceConnection';
105103

@@ -384,9 +382,6 @@ export class LedgerKeyAgent extends KeyAgentBase {
384382
if (!transport || !transport.deviceModel) {
385383
throw new errors.TransportError('Missing transport');
386384
}
387-
if (!isLedgerModelSupported(transport.deviceModel.id)) {
388-
throw new errors.TransportError(`Ledger device model: "${transport.deviceModel.id}" is not supported`);
389-
}
390385

391386
const newConnection = await LedgerKeyAgent.createDeviceConnection(transport);
392387
this.rememberConnection({

0 commit comments

Comments
 (0)