@onekeyfe/hwk-trezor-connector 1.2.8-alpha.9 → 1.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2416,7 +2416,9 @@ async function evmSignTypedData(ctx, params) {
2416
2416
  return signTypedDataFull(ctx, request);
2417
2417
  }
2418
2418
  function isTrezorOne(ctx) {
2419
- return ctx.deviceSession.features?.internal_model === "T1B1";
2419
+ const { features } = ctx.deviceSession;
2420
+ const model = features?.internal_model ?? features?.model;
2421
+ return model === "T1B1" || model === "1";
2420
2422
  }
2421
2423
  function getCallerProvidedTypedDataHashes(request) {
2422
2424
  const { domainSeparatorHash, messageHash } = request;