@injectivelabs/wallet-strategy 1.16.5-alpha.0 → 1.16.5-alpha.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.
@@ -139,7 +139,12 @@ class WalletStrategy extends wallet_core_1.BaseWalletStrategy {
139
139
  wallet_base_1.Wallet.PrivateKey,
140
140
  wallet_base_1.Wallet.WalletConnect,
141
141
  ];
142
- for (const wallet of Object.keys(this.strategies)) {
142
+ const strategiesWithPlaceholders = {
143
+ ...this.strategies,
144
+ [wallet_base_1.Wallet.PrivateKey]: undefined,
145
+ [wallet_base_1.Wallet.WalletConnect]: undefined,
146
+ };
147
+ for (const wallet of Object.keys(strategiesWithPlaceholders)) {
143
148
  const walletEnum = wallet;
144
149
  if (shouldRecreateStrategyOnMetadataChange.includes(walletEnum)) {
145
150
  this.strategies[walletEnum] = createStrategy({
@@ -136,7 +136,12 @@ export class WalletStrategy extends BaseWalletStrategy {
136
136
  Wallet.PrivateKey,
137
137
  Wallet.WalletConnect,
138
138
  ];
139
- for (const wallet of Object.keys(this.strategies)) {
139
+ const strategiesWithPlaceholders = {
140
+ ...this.strategies,
141
+ [Wallet.PrivateKey]: undefined,
142
+ [Wallet.WalletConnect]: undefined,
143
+ };
144
+ for (const wallet of Object.keys(strategiesWithPlaceholders)) {
140
145
  const walletEnum = wallet;
141
146
  if (shouldRecreateStrategyOnMetadataChange.includes(walletEnum)) {
142
147
  this.strategies[walletEnum] = createStrategy({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@injectivelabs/wallet-strategy",
3
3
  "description": "Wallet strategy with instantiated wallets",
4
- "version": "1.16.5-alpha.0",
4
+ "version": "1.16.5-alpha.2",
5
5
  "sideEffects": false,
6
6
  "type": "module",
7
7
  "author": {
@@ -58,22 +58,22 @@
58
58
  "dependencies": {
59
59
  "@ethereumjs/common": "^3.1.1",
60
60
  "@ethereumjs/tx": "^4.1.1",
61
- "@injectivelabs/exceptions": "1.16.5-alpha.0",
62
- "@injectivelabs/networks": "1.16.5-alpha.0",
63
- "@injectivelabs/sdk-ts": "1.16.5-alpha.0",
64
- "@injectivelabs/ts-types": "1.16.5-alpha.0",
65
- "@injectivelabs/utils": "1.16.5-alpha.0",
66
- "@injectivelabs/wallet-base": "1.16.5-alpha.0",
67
- "@injectivelabs/wallet-core": "1.16.5-alpha.0",
68
- "@injectivelabs/wallet-cosmos": "1.16.5-alpha.0",
69
- "@injectivelabs/wallet-cosmostation": "1.16.5-alpha.0",
70
- "@injectivelabs/wallet-evm": "1.16.5-alpha.0",
71
- "@injectivelabs/wallet-ledger": "1.16.5-alpha.0",
72
- "@injectivelabs/wallet-magic": "1.16.5-alpha.0",
73
- "@injectivelabs/wallet-private-key": "1.16.5-alpha.0",
74
- "@injectivelabs/wallet-trezor": "1.16.5-alpha.0",
75
- "@injectivelabs/wallet-turnkey": "1.16.5-alpha.0",
76
- "@injectivelabs/wallet-wallet-connect": "1.16.5-alpha.0",
61
+ "@injectivelabs/exceptions": "1.16.5-alpha.2",
62
+ "@injectivelabs/networks": "1.16.5-alpha.2",
63
+ "@injectivelabs/sdk-ts": "1.16.5-alpha.2",
64
+ "@injectivelabs/ts-types": "1.16.5-alpha.2",
65
+ "@injectivelabs/utils": "1.16.5-alpha.2",
66
+ "@injectivelabs/wallet-base": "1.16.5-alpha.2",
67
+ "@injectivelabs/wallet-core": "1.16.5-alpha.2",
68
+ "@injectivelabs/wallet-cosmos": "1.16.5-alpha.2",
69
+ "@injectivelabs/wallet-cosmostation": "1.16.5-alpha.2",
70
+ "@injectivelabs/wallet-evm": "1.16.5-alpha.2",
71
+ "@injectivelabs/wallet-ledger": "1.16.5-alpha.2",
72
+ "@injectivelabs/wallet-magic": "1.16.5-alpha.2",
73
+ "@injectivelabs/wallet-private-key": "1.16.5-alpha.2",
74
+ "@injectivelabs/wallet-trezor": "1.16.5-alpha.2",
75
+ "@injectivelabs/wallet-turnkey": "1.16.5-alpha.2",
76
+ "@injectivelabs/wallet-wallet-connect": "1.16.5-alpha.2",
77
77
  "alchemy-sdk": "^3.4.7",
78
78
  "eip1193-provider": "^1.0.1",
79
79
  "eth-sig-util": "^3.0.1",
@@ -87,5 +87,5 @@
87
87
  "@types/hdkey": "^2.0.1",
88
88
  "shx": "^0.3.3"
89
89
  },
90
- "gitHead": "d3684b59ca82800bc469f0b5c2796c9491b8b2cd"
90
+ "gitHead": "7b737bd3053f73f633837f686d31b59ee98c7f67"
91
91
  }