Skip to content

[HOTFIX] make Reward optional in some cases#135

Merged
dealloc merged 1 commit intomasterfrom
hotfix/no-rewards
May 26, 2025
Merged

[HOTFIX] make Reward optional in some cases#135
dealloc merged 1 commit intomasterfrom
hotfix/no-rewards

Conversation

@dealloc
Copy link
Member

@dealloc dealloc commented May 26, 2025

ArrowHead pushed an MO where the Reward fields are null which causes the current serialization process to break; effectively forcing the API offline.

This PR addresses the issue by updating the typing to account for this and will return an empty Rewards list (and null for Reward) if there's no rewards.

While this is a breaking change, we don't have much choice between making up data or breaking the interface.

@dealloc dealloc requested a review from a team May 26, 2025 15:58
@dealloc dealloc self-assigned this May 26, 2025
@dealloc dealloc added the bug Something isn't working label May 26, 2025
@dealloc
Copy link
Member Author

dealloc commented May 26, 2025

due to the urgency of the issue (API is down) and unavailability of any other maintainers I'll be bypassing the review requirement.

@dealloc dealloc merged commit 4c01bbb into master May 26, 2025
3 checks passed
@dealloc dealloc deleted the hotfix/no-rewards branch May 26, 2025 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments