add paramenter to a specific chain

This commit is contained in:
liangping 2022-08-05 06:25:16 +08:00
parent 2d73a3c72e
commit cda7253b21

View File

@ -94,7 +94,6 @@
size="sm" size="sm"
/> Not Signed /> Not Signed
</b-card-footer> </b-card-footer>
</b-card> </b-card>
<app-footer class="mb-1" /> <app-footer class="mb-1" />
</div> </div>
@ -131,7 +130,6 @@ export default {
data() { data() {
const chains = getLocalChains() const chains = getLocalChains()
const selected = 'agoric'
return { return {
navs: [ navs: [
{ {
@ -142,16 +140,22 @@ export default {
}, },
], ],
showPrevote: false, showPrevote: false,
rpc: `${chains[selected].rpc[0]}/consensus_state`,
httpstatus: 200, httpstatus: 200,
httpStatusText: '', httpStatusText: '',
roundState: {}, roundState: {},
selected,
chains, chains,
vals: [], vals: [],
positions: [], positions: [],
} }
}, },
computed: {
selected() {
return this.$route.query.chain || this.chains[Object.keys(this.chains)[0]].chain_name
},
rpc() {
return `${this.chains[this.selected].rpc[0]}/consensus_state`
},
},
created() { created() {
this.validators() this.validators()
}, },