fix issue

This commit is contained in:
liangping
2022-08-28 13:43:44 +08:00
parent 37eff20a6d
commit b955949c66
3 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -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) {