forked from cerc-io/cosmos-explorer
fix api changed
This commit is contained in:
parent
5fed99b1ab
commit
7b964b67f2
@ -129,7 +129,8 @@ export const useStakingStore = defineStore('stakingStore', {
|
|||||||
async fetchAllKeyRotation(chain_id: string) {
|
async fetchAllKeyRotation(chain_id: string) {
|
||||||
for(const val of this.validators) {
|
for(const val of this.validators) {
|
||||||
const { prefix } = fromBech32(val.operator_address)
|
const { prefix } = fromBech32(val.operator_address)
|
||||||
await this.fetchKeyRotation(chain_id, pubKeyToValcons(val.consensus_pubkey, prefix.replace('valoper','')))
|
console.log(val, prefix)
|
||||||
|
await this.fetchKeyRotation(chain_id, pubKeyToValcons(val.consensus_pubkey, prefix.replace('valoper','valcons')))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async fetchValidators(status: string, limit = 300) {
|
async fetchValidators(status: string, limit = 300) {
|
||||||
|
Loading…
Reference in New Issue
Block a user