@leofcoin/peernet 0.11.28 → 0.11.29

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/peernet.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/peernet",
3
- "version": "0.11.28",
3
+ "version": "0.11.29",
4
4
  "description": "",
5
5
  "main": "dist/commonjs/peernet.js",
6
6
  "module": "dist/module/peernet.js",
package/src/peernet.js CHANGED
@@ -197,7 +197,7 @@ export default class Peernet {
197
197
  const wallet = {}
198
198
  const {identity, accounts, config} = await generateAccount(this.network)
199
199
  walletStore.put('version', new TextEncoder().encode(1))
200
- walletStore.put('accounts', new TextEncoder().encode(accounts))
200
+ walletStore.put('accounts', new TextEncoder().encode(JSON.stringify(accounts)))
201
201
  walletStore.put('identity', new TextEncoder().encode(JSON.stringify(identity)))
202
202
  await accountStore.put('config', new TextEncoder().encode(JSON.stringify(config)));
203
203
  await accountStore.put('public', new TextEncoder().encode(JSON.stringify({walletId: identity.walletId})));