@onekeyfe/hwk-trezor-connector 1.2.8-alpha.50 → 1.2.8-alpha.52

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
@@ -8034,7 +8034,11 @@ var TrezorConnectorBase = class {
8034
8034
  durationMs: Date.now() - startedAt,
8035
8035
  error: errorToLog(error)
8036
8036
  });
8037
- return { success: false, error: (0, import_hwk_adapter_core3.serializeConnectorError)(error) };
8037
+ const serialized = (0, import_hwk_adapter_core3.serializeConnectorError)(error);
8038
+ if (error?.code === "ThpPairingFailed") {
8039
+ serialized.code = import_hwk_adapter_core3.HardwareErrorCode.ThpPairingFailed;
8040
+ }
8041
+ return { success: false, error: serialized };
8038
8042
  }
8039
8043
  }
8040
8044
  async dispatchCall(sessionId, method, params) {