fix api changed

This commit is contained in:
liangping 2024-04-16 09:54:21 +08:00
parent 5fed99b1ab
commit 7b964b67f2

View File

@ -129,7 +129,8 @@ export const useStakingStore = defineStore('stakingStore', {
async fetchAllKeyRotation(chain_id: string) {
for(const val of this.validators) {
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) {