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

Could we have a rename function? #154

Open
AurevoirXavier opened this issue Apr 27, 2022 · 4 comments
Open

Could we have a rename function? #154

AurevoirXavier opened this issue Apr 27, 2022 · 4 comments

Comments

@AurevoirXavier
Copy link

Just like the

#[serde(rename = "bar")]
foo: u64,
@ascjones
Copy link
Member

What's the use case?

@AurevoirXavier
Copy link
Author

polkadot-js/api#4775

Some modules on PolkadotJS like staking is using the hardcode field. For example exposure.total, but we made some customization for our staking module exposure.total_power. The staking page was completely broken now.

@AurevoirXavier
Copy link
Author

Hi! Are you going to support this or not?

@ascjones
Copy link
Member

I think it is something we could add, but it is unlikely that I personally will get around to it in the near future as I have a lot of work on my plate currently.

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

No branches or pull requests

2 participants