@onekeyfe/hwk-ledger-adapter 1.2.8-alpha.53 → 1.2.8-alpha.54
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 +7 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -1798,7 +1798,13 @@ var _LedgerAdapter = class _LedgerAdapter {
|
|
|
1798
1798
|
params
|
|
1799
1799
|
);
|
|
1800
1800
|
}
|
|
1801
|
-
tronSignMessage(connectId, deviceId, params) {
|
|
1801
|
+
async tronSignMessage(connectId, deviceId, params) {
|
|
1802
|
+
if (params?.messageType !== "V2") {
|
|
1803
|
+
return failure2(
|
|
1804
|
+
HardwareErrorCode3.MethodNotSupported,
|
|
1805
|
+
'Ledger signs TRON messages as TIP-191 signMessageV2 only (messageType: "V2")'
|
|
1806
|
+
);
|
|
1807
|
+
}
|
|
1802
1808
|
return this.callChainWithMergedParams(
|
|
1803
1809
|
connectId,
|
|
1804
1810
|
deviceId,
|