From 7b964b67f2387d2320ec99e16a72672ac201b56b Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Tue, 16 Apr 2024 09:54:21 +0800 Subject: [PATCH] fix api changed --- src/stores/useStakingStore.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stores/useStakingStore.ts b/src/stores/useStakingStore.ts index 22c0ed8a..35ccbeb6 100644 --- a/src/stores/useStakingStore.ts +++ b/src/stores/useStakingStore.ts @@ -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) {