feat: remove debug params
This commit is contained in:
parent
6b05b1ae7f
commit
9f18b65a9d
@ -23,7 +23,6 @@ const walletStore = useWalletStore();
|
||||
const format = useFormatter();
|
||||
const dialog = useTxDialog();
|
||||
const stakingStore = useStakingStore();
|
||||
|
||||
const coinInfo = computed(() => {
|
||||
return store.coinInfo;
|
||||
});
|
||||
@ -32,7 +31,6 @@ onMounted(() => {
|
||||
store.loadDashboard();
|
||||
walletStore.loadMyAsset();
|
||||
});
|
||||
|
||||
const ticker = computed(() => store.coinInfo.tickers[store.tickerIndex]);
|
||||
|
||||
blockchain.$subscribe((m, s) => {
|
||||
@ -89,12 +87,6 @@ const color = computed(() => {
|
||||
return 'text-red-600';
|
||||
}
|
||||
});
|
||||
const endpoint = 'https://juno-api.polkachu.com';
|
||||
const params = JSON.stringify({
|
||||
proposal_id: '1',
|
||||
validator_address: 'junovaloper1jxv0u20scum4trha72c7ltfgfqef6nscm9pmg2',
|
||||
chain_name: 'juno',
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@ -363,9 +355,9 @@ const params = JSON.stringify({
|
||||
</div>
|
||||
<Teleport to="body">
|
||||
<ping-token-convert
|
||||
chain-name="juno"
|
||||
:endpoint="endpoint"
|
||||
:params="params"
|
||||
:chain-name="blockchain?.chainName"
|
||||
:endpoint="blockchain?.endpoint?.address"
|
||||
:params="walletStore?.connectedWallet?.hdPath"
|
||||
></ping-token-convert>
|
||||
</Teleport>
|
||||
</div>
|
||||
|
@ -41,20 +41,15 @@ export const useGovStore = defineStore('govStore', {
|
||||
proposals?.proposals?.forEach(async (item) => {
|
||||
await this.fetchTally(item.proposal_id).then((res) => {
|
||||
item.final_tally_result = res?.tally;
|
||||
//
|
||||
|
||||
});
|
||||
if (this.walletstore.connectedWallet?.cosmosAddress) {
|
||||
if (this.walletstore.currentAddress) {
|
||||
try {
|
||||
await this.fetchProposalVotesVoter(item.proposal_id,this.walletstore.currentAddress).then((res) => {
|
||||
console.log(res, 'fdfsds')
|
||||
// VOTE_OPTION_YES VOTE_OPTION_NO VOTE_OPTION_ABSTAIN
|
||||
item.voterStatus = res?.vote?.option || 'No With Veto'
|
||||
});
|
||||
} catch (error) {
|
||||
item.voterStatus = 'No With Veto'
|
||||
}
|
||||
console.log(this.walletstore.connectedWallet, 'this.walletstore.connectedWallet')
|
||||
} else {
|
||||
item.voterStatus = 'No With Veto'
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user