-
Notifications
You must be signed in to change notification settings - Fork 683
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
Impossible to create chain spec with large balance #2963
Comments
|
@nazar-pc does this fixes your issue? |
I have not tried, but I'm 99% positive it will from the test Michal did. But I do think it should be incorporated upstream in case you wanted to close this issue right away 🙂 |
Yeah fine, @michalkucharczyk you want to open a pr to enable it somewhere in our stack? Maybe somewhere near the |
…on` (#2987) [`arbitrary_precision`](https://github.com/serde-rs/json/blob/6d44b9fac9269b4decf76acac5d68e8ec9d10c58/Cargo.toml#L69-L75) feature allows to (de-)serialize big numbers w/o error. For some details refer also to #1256 (comment) fixes: #2963
…on` (paritytech#2987) [`arbitrary_precision`](https://github.com/serde-rs/json/blob/6d44b9fac9269b4decf76acac5d68e8ec9d10c58/Cargo.toml#L69-L75) feature allows to (de-)serialize big numbers w/o error. For some details refer also to paritytech#1256 (comment) fixes: paritytech#2963
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Description of bug
After #1256
ChainSpec::from_genesis
is deprectated, but both serializing manually constructedRuntimeGenesisConfig
explicitly and usingjson!
macro fails for large balances likeu128:MAX / 2
:Same balance still works great with
ChainSpec::from_genesis
, but the way it actually does that is extremely convoluted, I was not yet able to figure out why it succeeds.Steps to reproduce
Try to set
u128::MAX / 2
balance for one of the accounts at genesisThe text was updated successfully, but these errors were encountered: