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

[rpc] properly serialize balances #145

Closed
clangenb opened this issue Feb 14, 2022 · 0 comments · Fixed by #146
Closed

[rpc] properly serialize balances #145

clangenb opened this issue Feb 14, 2022 · 0 comments · Fixed by #146

Comments

@clangenb
Copy link
Member

We are currently using a hack for how we encointer BalanceEntry:

// serde can't cope with i128 and panics. So we need to hand-encode the value here

This hack is obsolete if we use the correct serde attribute like we use here:

#[cfg_attr(feature = "serde_derive", serde(with = "serialize_fixed"))]

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 a pull request may close this issue.

1 participant