@starport/vuex
Advanced tools
Comparing version 0.1.20 to 0.1.21
@@ -0,0 +0,0 @@ module.exports = { |
@@ -5,4 +5,4 @@ import blocks from './src/chain/common/blocks' | ||
import wallet from './src/chain/common/wallet' | ||
import { keyFromWif, keyToWif } from './src/helpers/keys' | ||
export { blocks, env, starport, wallet, keyFromWif, keyToWif } | ||
export { blocks,env,starport,wallet, keyFromWif, keyToWif} | ||
{ | ||
"name": "@starport/vuex", | ||
"version": "0.1.20", | ||
"version": "0.1.21", | ||
"description": "A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends", | ||
@@ -5,0 +5,0 @@ "author": "Tendermint, Inc <hello@tendermint.com>", |
@@ -0,0 +0,0 @@ # `@starport/vuex` |
@@ -0,0 +0,0 @@ import axios from 'axios' |
@@ -0,0 +0,0 @@ import blocks from './blocks.js' |
@@ -0,0 +0,0 @@ import Client from '@starport/client-js' |
@@ -0,0 +0,0 @@ import env from './env.js' |
@@ -0,0 +0,0 @@ import starport from './starport.js' |
@@ -0,0 +0,0 @@ import axios from 'axios' |
@@ -0,0 +0,0 @@ import wallet from './wallet.js' |
@@ -26,2 +26,5 @@ import { | ||
address: (state) => state.selectedAddress, | ||
nameAvailable: (state) => (name) => { | ||
return state.wallets.findIndex((x) => x.name == name) == -1 | ||
}, | ||
lastWallet: (state) => { | ||
@@ -63,2 +66,3 @@ if (state.activeWallet) { | ||
state.activeWallet = wallet | ||
window.localStorage.setItem('lastWallet', wallet.name) | ||
if (state.activeWallet.name && state.activeWallet.password) { | ||
@@ -65,0 +69,0 @@ state.wallets.push({ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
37699
901