Skip to content

Commit 9982bd3

Browse files
chore(hardware-trezor): remove device model guard
1 parent 2109d34 commit 9982bd3

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

packages/hardware-trezor/src/TrezorKeyAgent.ts

-4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import {
1616
errors,
1717
util
1818
} from '@cardano-sdk/key-management';
19-
import { WhitelistedDeviceModel } from './utils';
2019
import { areStringsEqualInConstantTime } from '@cardano-sdk/util';
2120
import { txToTrezor } from './transformers/tx';
2221
import _TrezorConnectWeb from '@trezor/connect-web';
@@ -130,9 +129,6 @@ export class TrezorKeyAgent extends KeyAgentBase {
130129
if (!deviceFeatures.success) {
131130
throw new errors.TransportError('Failed to get device', deviceFeatures.payload);
132131
}
133-
if (!(Object.values(WhitelistedDeviceModel) as string[]).includes(deviceFeatures.payload.model)) {
134-
throw new errors.TransportError(`Trezor device model "${deviceFeatures.payload.model}" is not supported.`);
135-
}
136132
return deviceFeatures.payload;
137133
} catch (error) {
138134
throw transportTypedError(error);

packages/hardware-trezor/src/utils.ts

-4
This file was deleted.

0 commit comments

Comments
 (0)