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 json parsing of GetValidatorsAtArgs #3551

Merged
merged 3 commits into from
Nov 18, 2024

Conversation

iansuvak
Copy link
Contributor

Why this should be merged

Bugfix for a bug introduced in #3531 for the new "proposed" flag to platform.getValidatorsAt

How this works

Encoded bytes when passed in to the UnmarshalJSON contain extra quotes and escape characters. We need to unmarshal the string before comparison instead of doing it directly.

How this was tested

Adds new test TestGetValidatorsAtArgsMarshalling that fails before this fix and succeeds now

Need to be documented in RELEASES.md?

no (bugfix for already documented feature)

@iansuvak iansuvak self-assigned this Nov 15, 2024
@iansuvak iansuvak requested a review from marun November 16, 2024 00:02
@StephenButtolph StephenButtolph changed the title bugfix for json parsing of GetValidatorsAtArgs Fix json parsing of GetValidatorsAtArgs Nov 18, 2024
@StephenButtolph StephenButtolph added this pull request to the merge queue Nov 18, 2024
Merged via the queue into master with commit 62281d0 Nov 18, 2024
23 checks passed
@StephenButtolph StephenButtolph deleted the get-validators-at-json-fix branch November 18, 2024 14:48
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.

3 participants