From 9c26bcd220414c6114cb579193ca8b9db6882cc0 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Tue, 14 Dec 2021 12:01:37 +0800 Subject: [PATCH] update my delegations --- src/libs/fetch.js | 2 +- src/views/OperationDelegateComponent.vue | 11 +- src/views/WalletAccountDetail.vue | 19 ---- src/views/WalletDelegations.vue | 133 +++++++++++++++++++---- 4 files changed, 121 insertions(+), 44 deletions(-) diff --git a/src/libs/fetch.js b/src/libs/fetch.js index 4b7b2990..f06872af 100644 --- a/src/libs/fetch.js +++ b/src/libs/fetch.js @@ -276,7 +276,7 @@ export default class ChainFetch { if (compareVersions(config ? config.sdk_version : this.config.sdk_version, '0.40') < 0) { return this.get(`/distribution/delegators/${address}/rewards`, config).then(data => commonProcess(data)) } - return this.get(`/cosmos/distribution/v1beta1/delegators/${address}/rewards`).then(data => commonProcess(data)) + return this.get(`/cosmos/distribution/v1beta1/delegators/${address}/rewards`, config).then(data => commonProcess(data)) } async getStakingValidators(address) { diff --git a/src/views/OperationDelegateComponent.vue b/src/views/OperationDelegateComponent.vue index d4dd2248..71fd0e26 100644 --- a/src/views/OperationDelegateComponent.vue +++ b/src/views/OperationDelegateComponent.vue @@ -19,7 +19,7 @@ >