forked from LaconicNetwork/cosmos-explorer
add paramenter to a specific chain
This commit is contained in:
parent
2d73a3c72e
commit
cda7253b21
@ -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()
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user