Skip to content

Commit

Permalink
chore(hardware-trezor): remove device model guard
Browse files Browse the repository at this point in the history
  • Loading branch information
tomislavhoracek committed Jun 17, 2024
1 parent 2109d34 commit 9982bd3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions packages/hardware-trezor/src/TrezorKeyAgent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import {
errors,
util
} from '@cardano-sdk/key-management';
import { WhitelistedDeviceModel } from './utils';
import { areStringsEqualInConstantTime } from '@cardano-sdk/util';
import { txToTrezor } from './transformers/tx';
import _TrezorConnectWeb from '@trezor/connect-web';
Expand Down Expand Up @@ -130,9 +129,6 @@ export class TrezorKeyAgent extends KeyAgentBase {
if (!deviceFeatures.success) {
throw new errors.TransportError('Failed to get device', deviceFeatures.payload);
}
if (!(Object.values(WhitelistedDeviceModel) as string[]).includes(deviceFeatures.payload.model)) {
throw new errors.TransportError(`Trezor device model "${deviceFeatures.payload.model}" is not supported.`);
}
return deviceFeatures.payload;
} catch (error) {
throw transportTypedError(error);
Expand Down
4 changes: 0 additions & 4 deletions packages/hardware-trezor/src/utils.ts

This file was deleted.

0 comments on commit 9982bd3

Please sign in to comment.