Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: delegation rewards field #915

Merged
merged 1 commit into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Bug fixes

- [#915](https://github.com/alleslabs/celatone-frontend/pull/915) Fix delegation rewards field name
- [#911](https://github.com/alleslabs/celatone-frontend/pull/911) Fix validator top flex
- [#909](https://github.com/alleslabs/celatone-frontend/pull/909) Remove module arbitrary policy as it is no longer supported
- [#904](https://github.com/alleslabs/celatone-frontend/pull/904) Fix wasm page container text alignment
Expand Down
6 changes: 3 additions & 3 deletions src/lib/services/delegation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const zDelegations = z
validator: zValidator,
})
),
delegations_rewards: z.object({
delegation_rewards: z.object({
rewards: z.array(
z.object({
reward: z.array(
Expand Down Expand Up @@ -94,11 +94,11 @@ const zDelegations = z
validator: delegation.validator,
})),
delegationRewards: {
rewards: val.delegations_rewards.rewards.map((reward) => ({
rewards: val.delegation_rewards.rewards.map((reward) => ({
reward: reward.reward,
validator: reward.validator,
})),
total: val.delegations_rewards.total,
total: val.delegation_rewards.total,
},
unbondings: val.unbondings
.map((unbonding) =>
Expand Down
Loading