@onekeyfe/hwk-trezor-connector 1.2.8-alpha.133 → 1.2.8-alpha.134
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.js
CHANGED
|
@@ -2439,7 +2439,9 @@ async function evmSignTypedData(ctx, params) {
|
|
|
2439
2439
|
return signTypedDataFull(ctx, request);
|
|
2440
2440
|
}
|
|
2441
2441
|
function isTrezorOne(ctx) {
|
|
2442
|
-
|
|
2442
|
+
const { features } = ctx.deviceSession;
|
|
2443
|
+
const model = features?.internal_model ?? features?.model;
|
|
2444
|
+
return model === "T1B1" || model === "1";
|
|
2443
2445
|
}
|
|
2444
2446
|
function getCallerProvidedTypedDataHashes(request) {
|
|
2445
2447
|
const { domainSeparatorHash, messageHash } = request;
|