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 bug where AccountInfo could fail if there were no pendingchange for a delegator or validator. #307

Merged
merged 3 commits into from
Feb 5, 2024

Conversation

MilkywayPirate
Copy link
Contributor

@MilkywayPirate MilkywayPirate commented Feb 5, 2024

Purpose

Fix #306

Changes

  • Fixed parsing of the delegator / baker stake objects
  • Baker and AccountDelegation now exposes Optional<PendingChange> as opposed to just
    PendingChange.
  • Fix .equals on AccountInfo
  • Added a test

Checklist

  • My code follows the style of this project.
  • The code compiles without warnings.
  • I have performed a self-review of the changes.
  • I have documented my code, in particular the intent of the
    hard-to-understand areas.
  • (If necessary) I have updated the CHANGELOG.

@MilkywayPirate MilkywayPirate self-assigned this Feb 5, 2024
@MilkywayPirate MilkywayPirate merged commit f337f03 into main Feb 5, 2024
2 checks passed
@MilkywayPirate MilkywayPirate deleted the pendingchange-fix branch February 5, 2024 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants