You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/accounts/{accountId}/staking-info The return of this interface is changed (The key claimedRewards that returns the result becomes legacyClaimedRewards), why is this?
#1433
Open
wangtao19911111 opened this issue
Apr 24, 2024
· 1 comment
· May be fixed by #1445
/accounts/{accountId}/staking-info The return of this interface is changed
(The key claimedRewards that returns the result becomes legacyClaimedRewards), why is this?
Steps to Reproduce
[Provide detailed steps for someone else to reproduce your bug.]
Expected vs. Actual Behavior
[A clear description of what you expected to happen and what actually happened.]
The text was updated successfully, but these errors were encountered:
This is due to one of the changes mentioned in this PR :
StakingLedger.claimed_rewards, renamed to StakingLedger.legacy_claimed_rewards.
The reason of the renaming is because the use of StakingLedger.legacy_claimed_rewards is being deprecated and will be removed.
This directly impacts Sidecar's staking-info endpoint where all information found in StakingLedger is returned without any validation on specific fields, as seen here. Hence, as soon as the last runtime upgrade (v1.2.0) was enacted and the change took effect :
on Kusama (era 6514 (Apr 18)) and
Polkadot (era 1420 (Apr 21)) (eras and dates mentioned in this PR)
it also resulted in the renaming of the field in Sidecar's response.
I will check the code in detail tomorrow and keep you updated of any related fixes.
Imod7
linked a pull request
Jun 4, 2024
that will
close
this issue
Description
/accounts/{accountId}/staking-info The return of this interface is changed
(The key claimedRewards that returns the result becomes legacyClaimedRewards), why is this?
Steps to Reproduce
[Provide detailed steps for someone else to reproduce your bug.]
Expected vs. Actual Behavior
[A clear description of what you expected to happen and what actually happened.]
The text was updated successfully, but these errors were encountered: