diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 4f8ae5b2..4ef87c6e 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -16,4 +16,5 @@ jobs: uses: actions/checkout@v2 - name: deploy + run: yarn install run: yarn run vue-cli-service build \ No newline at end of file diff --git a/src/libs/data/deposit.js b/src/libs/data/deposit.js index 0ca41fd8..4896c579 100644 --- a/src/libs/data/deposit.js +++ b/src/libs/data/deposit.js @@ -11,8 +11,4 @@ export default class Deposit { this.amount = element.amount return this } - - debug() { - return console.log(this) - } } diff --git a/src/libs/data/proposer.js b/src/libs/data/proposer.js index 9a2574b7..a8acb34d 100644 --- a/src/libs/data/proposer.js +++ b/src/libs/data/proposer.js @@ -11,8 +11,4 @@ export default class Proposer { } return this } - - debug() { - return console.log(this) - } } diff --git a/src/libs/data/staking-parameters.js b/src/libs/data/staking-parameters.js index 4b778765..82f3b8d0 100644 --- a/src/libs/data/staking-parameters.js +++ b/src/libs/data/staking-parameters.js @@ -17,8 +17,4 @@ export default class StakingParameters { } return this } - - debug() { - return console.log(this) - } } diff --git a/src/libs/data/valdiator-description.js b/src/libs/data/valdiator-description.js index 856f2c8e..67b1b2b1 100644 --- a/src/libs/data/valdiator-description.js +++ b/src/libs/data/valdiator-description.js @@ -17,8 +17,4 @@ export default class ValidatorDescription { } return this } - - debug() { - return console.log(this) - } } diff --git a/src/libs/data/validator-commission.js b/src/libs/data/validator-commission.js index c61d3b65..3da5a4c9 100644 --- a/src/libs/data/validator-commission.js +++ b/src/libs/data/validator-commission.js @@ -15,8 +15,4 @@ export default class ValidatorCommission { } return this } - - debug() { - return console.log(this) - } } diff --git a/src/libs/data/votes.js b/src/libs/data/votes.js index 54a8b159..74333956 100644 --- a/src/libs/data/votes.js +++ b/src/libs/data/votes.js @@ -11,8 +11,4 @@ export default class Votes { this.option = element.option return this } - - debug() { - return console.log(this) - } } diff --git a/src/libs/fetch.js b/src/libs/fetch.js index c090bf47..38f848bb 100644 --- a/src/libs/fetch.js +++ b/src/libs/fetch.js @@ -25,7 +25,6 @@ async function refetchVersion(chain) { const version = sdk.match(re) return version[0] }) - .catch(e => console.error(e)) } const chainAPI = class ChainFetch { @@ -135,7 +134,7 @@ const chainAPI = class ChainFetch { } async getGovernanceProposer(pid) { - return this.get(`/gov/proposals/${pid}/proposer`).then(data => new Proposer().init(commonProcess(data))).catch(e => console.log(e)) + return this.get(`/gov/proposals/${pid}/proposer`).then(data => new Proposer().init(commonProcess(data))) } async getGovernanceDeposits(pid) { @@ -164,7 +163,7 @@ const chainAPI = class ChainFetch { async get(url) { this.getSelectedConfig() - const ret = await fetch(this.config.api + url).then(response => response.json()).catch(e => console.error(e)) + const ret = await fetch(this.config.api + url).then(response => response.json()) return ret } } diff --git a/src/store/chains/index.js b/src/store/chains/index.js index 4f474693..e30dbed2 100644 --- a/src/store/chains/index.js +++ b/src/store/chains/index.js @@ -25,7 +25,6 @@ Object.keys(chains).forEach(key => { chain.sdk_version = version[0] localStorage.setItem('chains', JSON.stringify(chains)) }) - .catch(e => console.error(`Failed get api vesion of ${key}`, e)) }) export default { diff --git a/src/views/Block.vue b/src/views/Block.vue index b8be8789..90c73ee4 100644 --- a/src/views/Block.vue +++ b/src/views/Block.vue @@ -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 diff --git a/src/views/ProposalView.vue b/src/views/ProposalView.vue index d020118c..caf5ce9e 100644 --- a/src/views/ProposalView.vue +++ b/src/views/ProposalView.vue @@ -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 }) diff --git a/src/views/StakingValidator.vue b/src/views/StakingValidator.vue index b1721ced..4c4c30e0 100644 --- a/src/views/StakingValidator.vue +++ b/src/views/StakingValidator.vue @@ -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