@exodus/hw-ledger 2.2.1 → 2.2.2

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/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.2.2](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/hw-ledger@2.2.1...@exodus/hw-ledger@2.2.2) (2024-01-18)
7
+
8
+ ### Bug Fixes
9
+
10
+ - proper error handling for eth ([#5447](https://github.com/ExodusMovement/exodus-hydra/issues/5447)) ([4f72307](https://github.com/ExodusMovement/exodus-hydra/commit/4f72307b52c6dcd2584a7bf347139b9b7cf42387))
11
+
6
12
  ## [2.2.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/hw-ledger@2.2.0...@exodus/hw-ledger@2.2.1) (2024-01-16)
7
13
 
8
14
  ### Bug Fixes
@@ -74,14 +74,14 @@ async function createHandler(transport) {
74
74
  });
75
75
  }
76
76
  catch (err) {
77
- if (err instanceof Error && err.message.includes('EthAppNftNotSupported')) {
77
+ if (err.name === 'EthAppNftNotSupported') {
78
78
  response = await signTransaction({
79
79
  derivationPath: params.derivationPaths[0],
80
80
  serializedTransactionHex,
81
81
  withNFT: false,
82
82
  });
83
83
  }
84
- else if (err instanceof Error && err.message.includes('EthAppPleaseEnableContractData')) {
84
+ else if (err.name === 'EthAppPleaseEnableContractData') {
85
85
  throw new RequiresBlindSigningError();
86
86
  }
87
87
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/hw-ledger",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "description": "The ledger module",
5
5
  "author": "Exodus Movement Inc.",
6
6
  "repository": {
@@ -67,5 +67,5 @@
67
67
  "ts-jest": "^29.0.3",
68
68
  "typescript": "^4.7.3"
69
69
  },
70
- "gitHead": "58a6b3ab7d222a9a18a48fae2f450ebef9c67738"
70
+ "gitHead": "894d5c0882f74eecc06069d8048c7a103db4efc6"
71
71
  }