@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.
- package/package.json +1 -1
- package/src/peernet.js +1 -1
package/package.json
CHANGED
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})));
|