@onekeyfe/hwk-ledger-adapter 1.2.8-alpha.52 → 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.js
CHANGED
|
@@ -1811,7 +1811,13 @@ var _LedgerAdapter = class _LedgerAdapter {
|
|
|
1811
1811
|
params
|
|
1812
1812
|
);
|
|
1813
1813
|
}
|
|
1814
|
-
tronSignMessage(connectId, deviceId, params) {
|
|
1814
|
+
async tronSignMessage(connectId, deviceId, params) {
|
|
1815
|
+
if (params?.messageType !== "V2") {
|
|
1816
|
+
return (0, import_hwk_adapter_core4.failure)(
|
|
1817
|
+
import_hwk_adapter_core4.HardwareErrorCode.MethodNotSupported,
|
|
1818
|
+
'Ledger signs TRON messages as TIP-191 signMessageV2 only (messageType: "V2")'
|
|
1819
|
+
);
|
|
1820
|
+
}
|
|
1815
1821
|
return this.callChainWithMergedParams(
|
|
1816
1822
|
connectId,
|
|
1817
1823
|
deviceId,
|