diff --git a/src/modules/[chain]/consensus/index.vue b/src/modules/[chain]/consensus/index.vue index 83d68c22..37805c30 100644 --- a/src/modules/[chain]/consensus/index.vue +++ b/src/modules/[chain]/consensus/index.vue @@ -31,11 +31,7 @@ let positions = ref([]); onMounted(() => { stakingStore.init(); rpc.value = rpcList.value[0].address + '/consensus_state'; - // 'https://rpc-osmosis-ia.cosmosia.notional.ventures:443/consensus_state'; - // 'https://rpc-osmosis-ia.cosmosia.notional.ventures/consensus_state'; - // rpcList.value[0].address + '/consensus_state'; fetchPosition(); - console.log(stakingStore.rpc, 'stakingStore', validators); update(); timer = setInterval(() => { update(); @@ -104,9 +100,8 @@ async function fetchPosition() { positions.value = data.result.round_state.validators.validators; } catch (error) { httpstatus.value = error?.status || 500; - httpStatusText.value = 'Error'; + httpStatusText.value = error?.message||'Error'; } - console.log(dumpurl, 'dumpurl'); } async function update() { diff --git a/src/stores/useStakingStore.ts b/src/stores/useStakingStore.ts index fdde8304..de2aa3ff 100644 --- a/src/stores/useStakingStore.ts +++ b/src/stores/useStakingStore.ts @@ -88,7 +88,6 @@ export const useStakingStore = defineStore('stakingStore', { (a, b) => Number(b.delegator_shares) - Number(a.delegator_shares) ) if (status === 'BOND_STATUS_BONDED') { - console.log(proVals, 'proVals') this.validators = proVals; } return proVals