forked from LaconicNetwork/cosmos-explorer
fix issue
This commit is contained in:
@@ -83,7 +83,7 @@ import {
|
||||
import {
|
||||
getLocalChains, timeIn, toDay,
|
||||
} from '@/libs/utils'
|
||||
import { Bech32, toHex } from '@cosmjs/encoding'
|
||||
import { fromBech32, toBase64 } from '@cosmjs/encoding'
|
||||
|
||||
export default {
|
||||
name: 'Blocks',
|
||||
@@ -134,8 +134,8 @@ export default {
|
||||
if (res.info) {
|
||||
res.info.forEach(x => {
|
||||
if (x.address) {
|
||||
const hex = toHex(Bech32.decode(x.address).data).toUpperCase()
|
||||
this.missing[hex] = x
|
||||
const addr = toBase64(fromBech32(x.address).data)
|
||||
this.missing[addr] = x
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -309,7 +309,7 @@ export default {
|
||||
accounts() {
|
||||
const accounts = getLocalAccounts()
|
||||
const selectedWallet = this.$store.state.chains.defaultWallet
|
||||
return accounts[selectedWallet]
|
||||
return accounts ? accounts[selectedWallet] : null
|
||||
},
|
||||
isOwner() {
|
||||
if (this.accounts) {
|
||||
|
||||
Reference in New Issue
Block a user