Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

token-2022: Use serde with rename_all = "camelCase" #5624

Merged
merged 1 commit into from
Oct 20, 2023

Conversation

joncinque
Copy link
Contributor

Problem

#5437 did some great work with deriving the serde traits, but we forgot to specify rename_all = "camelCase" as a separate attribute, which means that we'd get some inconsistency in the serialization.

Solution

Just add the attribute config. There were also a couple of transfer-fee structs that didn't have it, so I added those.

@joncinque joncinque requested a review from buffalojoec October 20, 2023 13:12
@joncinque joncinque marked this pull request as ready for review October 20, 2023 13:12
Copy link
Contributor

@buffalojoec buffalojoec left a comment

Choose a reason for hiding this comment

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

Lgtm mate!

@joncinque joncinque merged commit a630df8 into solana-labs:master Oct 20, 2023
@joncinque joncinque deleted the camelCase branch October 20, 2023 13:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants