@keplr-wallet/background 0.12.0-alpha.7 → 0.12.0-alpha.9

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.
@@ -234,7 +234,7 @@ class KeyRingService {
234
234
  const encodedPubkeys = JSON.parse(buffer_1.Buffer.from(cipherText).toString());
235
235
  if (encodedPubkeys["cosmos"]) {
236
236
  const pubKey = buffer_1.Buffer.from(encodedPubkeys["cosmos"], "hex");
237
- const vaultId = yield this.createLedgerKeyRing(pubKey, ((_m = keyStore.meta) === null || _m === void 0 ? void 0 : _m["__ledger__cosmos_app_like__"]) === "terra"
237
+ const vaultId = yield this.createLedgerKeyRing(pubKey, ((_m = keyStore.meta) === null || _m === void 0 ? void 0 : _m["__ledger__cosmos_app_like__"]) === "Terra"
238
238
  ? "Terra"
239
239
  : "Cosmos", (_o = keyStore.bip44HDPath) !== null && _o !== void 0 ? _o : {
240
240
  account: 0,
@@ -242,8 +242,8 @@ class KeyRingService {
242
242
  addressIndex: 0,
243
243
  }, (_q = (_p = keyStore.meta) === null || _p === void 0 ? void 0 : _p["name"]) !== null && _q !== void 0 ? _q : "Keplr Account", password);
244
244
  let hasEthereum = false;
245
- if (encodedPubkeys["Ethereum"]) {
246
- const pubKey = buffer_1.Buffer.from(encodedPubkeys["Ethereum"], "hex");
245
+ if (encodedPubkeys["ethereum"]) {
246
+ const pubKey = buffer_1.Buffer.from(encodedPubkeys["ethereum"], "hex");
247
247
  this.appendLedgerKeyRing(vaultId, pubKey, "Ethereum");
248
248
  hasEthereum = true;
249
249
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keplr-wallet/background",
3
- "version": "0.12.0-alpha.7",
3
+ "version": "0.12.0-alpha.9",
4
4
  "main": "build/index.js",
5
5
  "author": "chainapsis",
6
6
  "license": "Apache-2.0",
@@ -30,17 +30,17 @@
30
30
  "@ethersproject/hash": "^5.7.0",
31
31
  "@ethersproject/transactions": "^5.7.0",
32
32
  "@ethersproject/wallet": "^5.7.0",
33
- "@keplr-wallet/chain-validator": "0.12.0-alpha.7",
34
- "@keplr-wallet/common": "0.12.0-alpha.7",
35
- "@keplr-wallet/cosmos": "0.12.0-alpha.7",
36
- "@keplr-wallet/crypto": "0.12.0-alpha.7",
37
- "@keplr-wallet/ledger-cosmos": "0.12.0-alpha.7",
38
- "@keplr-wallet/popup": "0.12.0-alpha.7",
39
- "@keplr-wallet/proto-types": "0.12.0-alpha.7",
40
- "@keplr-wallet/router": "0.12.0-alpha.7",
41
- "@keplr-wallet/simple-fetch": "0.12.0-alpha.7",
42
- "@keplr-wallet/types": "0.12.0-alpha.7",
43
- "@keplr-wallet/unit": "0.12.0-alpha.7",
33
+ "@keplr-wallet/chain-validator": "0.12.0-alpha.9",
34
+ "@keplr-wallet/common": "0.12.0-alpha.9",
35
+ "@keplr-wallet/cosmos": "0.12.0-alpha.9",
36
+ "@keplr-wallet/crypto": "0.12.0-alpha.9",
37
+ "@keplr-wallet/ledger-cosmos": "0.12.0-alpha.9",
38
+ "@keplr-wallet/popup": "0.12.0-alpha.9",
39
+ "@keplr-wallet/proto-types": "0.12.0-alpha.9",
40
+ "@keplr-wallet/router": "0.12.0-alpha.9",
41
+ "@keplr-wallet/simple-fetch": "0.12.0-alpha.9",
42
+ "@keplr-wallet/types": "0.12.0-alpha.9",
43
+ "@keplr-wallet/unit": "0.12.0-alpha.9",
44
44
  "@keystonehq/base-eth-keyring": "^0.6.4",
45
45
  "@keystonehq/bc-ur-registry": "^0.5.1",
46
46
  "@keystonehq/bc-ur-registry-cosmos": "^0.1.1",
@@ -65,5 +65,5 @@
65
65
  "pbkdf2": "^3.1.2",
66
66
  "utility-types": "^3.10.0"
67
67
  },
68
- "gitHead": "692f760f3fd42680af3dbda74afe43b01741f64c"
68
+ "gitHead": "21ed70879dc49b472b48972cc1433ccb07b1dd5d"
69
69
  }
@@ -308,7 +308,7 @@ export class KeyRingService {
308
308
  );
309
309
  const vaultId = await this.createLedgerKeyRing(
310
310
  pubKey,
311
- keyStore.meta?.["__ledger__cosmos_app_like__"] === "terra"
311
+ keyStore.meta?.["__ledger__cosmos_app_like__"] === "Terra"
312
312
  ? "Terra"
313
313
  : "Cosmos",
314
314
  keyStore.bip44HDPath ?? {
@@ -321,9 +321,9 @@ export class KeyRingService {
321
321
  );
322
322
 
323
323
  let hasEthereum = false;
324
- if (encodedPubkeys["Ethereum"]) {
324
+ if (encodedPubkeys["ethereum"]) {
325
325
  const pubKey = Buffer.from(
326
- encodedPubkeys["Ethereum"] as string,
326
+ encodedPubkeys["ethereum"] as string,
327
327
  "hex"
328
328
  );
329
329
  this.appendLedgerKeyRing(vaultId, pubKey, "Ethereum");