@onekeyfe/hwk-trezor-connector 1.2.8-alpha.7 → 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 +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
package/dist/index.mjs
CHANGED
|
@@ -2402,7 +2402,9 @@ async function evmSignTypedData(ctx, params) {
|
|
|
2402
2402
|
return signTypedDataFull(ctx, request);
|
|
2403
2403
|
}
|
|
2404
2404
|
function isTrezorOne(ctx) {
|
|
2405
|
-
|
|
2405
|
+
const { features } = ctx.deviceSession;
|
|
2406
|
+
const model = features?.internal_model ?? features?.model;
|
|
2407
|
+
return model === "T1B1" || model === "1";
|
|
2406
2408
|
}
|
|
2407
2409
|
function getCallerProvidedTypedDataHashes(request) {
|
|
2408
2410
|
const { domainSeparatorHash, messageHash } = request;
|