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 name of parameter for WithdrawalRequest #7122

Merged

Conversation

lucassaldanha
Copy link
Member

PR description

The name of the parameter should be validatorPublicKey. This change 7e78da6 tried to fix it but only made the change in the @JsonProperty in the constructor, that is used for deserialization.

To fix this, we need to fix it on the getter method with the @JsonGetter annotation. This is what is used for serialization and infers the name of the field from the name of the getter method. So getValidatorPublicKey becomes validatorPublicKey when serializing to json.

I have also removed the method asJsonObject because it is not being used.

@lucassaldanha
Copy link
Member Author

PS: this needs to be backported to a pectra branch.

@lucassaldanha lucassaldanha force-pushed the fix-withdrawal-request-param branch from 5be2f3a to 7e419ad Compare May 17, 2024 20:02
@macfarla macfarla merged commit d7123ce into hyperledger:main May 19, 2024
42 checks passed
jflo pushed a commit to jflo/besu that referenced this pull request May 28, 2024
Signed-off-by: Lucas Saldanha <[email protected]>
Signed-off-by: Justin Florentine <[email protected]>
matthew1001 pushed a commit to kaleido-io/besu that referenced this pull request Jun 7, 2024
jflo pushed a commit to jflo/besu that referenced this pull request Jun 10, 2024
Signed-off-by: Lucas Saldanha <[email protected]>
Signed-off-by: Justin Florentine <[email protected]>
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