This commit is contained in:
liangping
2021-08-05 21:11:11 +08:00
parent 79b4bc671b
commit eb7d943691
12 changed files with 5 additions and 31 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ export default {
tx.setHash(txs[i])
array.push(tx)
} catch (e) {
console.error(e)
// catch errors
}
}
if (array.length > 0) this.txs = array
+1 -1
View File
@@ -265,7 +265,7 @@ export default {
this.$http.getGovernance(pid).then(p => {
if (p.status === 2) {
this.$http.getGovernanceTally(pid, 0).then(t => p.updateTally(t)).catch(e => console.error('failed on update voting tally:', e))
this.$http.getGovernanceTally(pid, 0).then(t => p.updateTally(t))
}
this.proposal = p
})
-1
View File
@@ -388,7 +388,6 @@ export default {
},
fetch_latest() {
this.$http.getLatestBlock().then(res => {
console.log('fetched: ', res.block.last_commit.height)
const sigs = res.block.last_commit.signatures.find(s => s.validator_address === this.hexAddress)
const block = this.blocks.find(b => b[1] === res.block.last_commit.height)
if (typeof block === 'undefined') { // mei