File tree 2 files changed +0
-8
lines changed
2 files changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -98,8 +98,6 @@ const stakeCredentialCert = (cert: Certificate) =>
98
98
cert . type === CertificateType . STAKE_REGISTRATION ||
99
99
cert . type === CertificateType . STAKE_DEREGISTRATION ||
100
100
cert . type === CertificateType . STAKE_DELEGATION ;
101
- const isLedgerModelSupported = ( deviceModelId : string ) : deviceModelId is 'nanoS' | 'nanoX' | 'nanoSP' =>
102
- [ 'nanoS' , 'nanoX' , 'nanoSP' ] . includes ( deviceModelId ) ;
103
101
104
102
const establishDeviceConnectionMethodName = 'establishDeviceConnection' ;
105
103
@@ -384,9 +382,6 @@ export class LedgerKeyAgent extends KeyAgentBase {
384
382
if ( ! transport || ! transport . deviceModel ) {
385
383
throw new errors . TransportError ( 'Missing transport' ) ;
386
384
}
387
- if ( ! isLedgerModelSupported ( transport . deviceModel . id ) ) {
388
- throw new errors . TransportError ( `Ledger device model: "${ transport . deviceModel . id } " is not supported` ) ;
389
- }
390
385
391
386
const newConnection = await LedgerKeyAgent . createDeviceConnection ( transport ) ;
392
387
this . rememberConnection ( {
Original file line number Diff line number Diff line change @@ -129,9 +129,6 @@ export class TrezorKeyAgent extends KeyAgentBase {
129
129
if ( ! deviceFeatures . success ) {
130
130
throw new errors . TransportError ( 'Failed to get device' , deviceFeatures . payload ) ;
131
131
}
132
- if ( deviceFeatures . payload . model !== 'T' ) {
133
- throw new errors . TransportError ( `Trezor device model "${ deviceFeatures . payload . model } " is not supported.` ) ;
134
- }
135
132
return deviceFeatures . payload ;
136
133
} catch ( error ) {
137
134
throw transportTypedError ( error ) ;
You can’t perform that action at this time.
0 commit comments