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

Actualize era_summary RPC response #137

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

ZhmakAS
Copy link
Collaborator

@ZhmakAS ZhmakAS commented Feb 4, 2025

Actualize era_summary RPC response

  • Resolves: #

Summary

TODO

  • ...

Checklist

  • Code is properly formatted
  • All commits are signed
  • Tests included/updated or not needed
  • Documentation (manuals or wiki) has been updated or is not required

Actualize era_summary RPC response
@ZhmakAS ZhmakAS requested a review from ihor February 4, 2025 17:45
@@ -19,7 +19,7 @@ type EraInfo struct {
// SeigniorageAllocation sores information about a seigniorage allocation
type SeigniorageAllocation struct {
Validator *ValidatorAllocation `json:"Validator,omitempty"`
Delegator *DelegatorAllocation `json:"Delegator,omitempty"`
Delegator *DelegatorAllocation `json:"DelegatorKind,omitempty"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we have both Delegator and DelegatorKind keys to support both 1.5.x and 2.0?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its handled by custom Unmarshaler

@ZhmakAS ZhmakAS merged commit 26b0a83 into master Feb 5, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants