@swapkit/wallet-keystore 1.0.5 → 1.0.7

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/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "dependencies": {
3
3
  "@scure/bip39": "1.3.0",
4
- "@swapkit/helpers": "1.1.0",
5
- "@swapkit/toolbox-cosmos": "1.0.5",
6
- "@swapkit/toolbox-evm": "1.1.0",
7
- "@swapkit/toolbox-radix": "1.0.5",
8
- "@swapkit/toolbox-solana": "1.0.5",
9
- "@swapkit/toolbox-substrate": "1.1.0",
10
- "@swapkit/toolbox-utxo": "1.0.5",
4
+ "@swapkit/helpers": "1.1.2",
5
+ "@swapkit/toolbox-cosmos": "1.0.7",
6
+ "@swapkit/toolbox-evm": "1.1.2",
7
+ "@swapkit/toolbox-radix": "1.0.7",
8
+ "@swapkit/toolbox-solana": "1.0.7",
9
+ "@swapkit/toolbox-substrate": "1.1.2",
10
+ "@swapkit/toolbox-utxo": "1.0.7",
11
11
  "blakejs": "1.2.1",
12
12
  "micro-key-producer": "0.7.0"
13
13
  },
@@ -35,5 +35,5 @@
35
35
  },
36
36
  "type": "module",
37
37
  "types": "./src/index.ts",
38
- "version": "1.0.5"
38
+ "version": "1.0.7"
39
39
  }
package/src/keystore.ts CHANGED
@@ -184,7 +184,7 @@ const getWalletMethodsForChain = async ({
184
184
 
185
185
  const signMessage = async (message: string) => {
186
186
  const privateKey = await toolbox.createPrivateKeyFromPhrase(phrase);
187
- return toolbox.signMessage({ privateKey, message });
187
+ return toolbox.signWithPrivateKey({ privateKey, message });
188
188
  };
189
189
 
190
190
  const walletMethods = {
@@ -264,11 +264,11 @@ function connectKeystore({
264
264
  });
265
265
 
266
266
  addChain({
267
+ ...walletMethods,
267
268
  chain,
268
269
  address,
269
270
  balance: [],
270
271
  walletType: WalletOption.KEYSTORE,
271
- ...walletMethods,
272
272
  });
273
273
  });
274
274