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

Serde Serialize & Deserialize for BoundedBTreeMap #870

Merged
merged 12 commits into from
Oct 8, 2024

Conversation

PolkadotDom
Copy link
Contributor

@PolkadotDom PolkadotDom commented Oct 5, 2024

BoundedBTreeMap cannot currently be used for parachain genesis state due to missing implementations of Serde. This PR aims to resolve that, similar to BoundedVec and BoundedBTreeSet

Corresponding issue: #869

bounded-collections/src/bounded_btree_map.rs Outdated Show resolved Hide resolved
@bkchr bkchr requested a review from ordian October 6, 2024 11:51
bounded-collections/CHANGELOG.md Outdated Show resolved Hide resolved
PolkadotDom and others added 2 commits October 6, 2024 11:30
Co-authored-by: ordian <write@reusable.software>
Co-authored-by: Bastian Köcher <git@kchr.de>
@PolkadotDom
Copy link
Contributor Author

@bkchr @ordian committed the suggestions 👍

@ordian
Copy link
Member

ordian commented Oct 6, 2024

Could you also bump the Cargo.toml version? Looks good otherwise.

@ordian
Copy link
Member

ordian commented Oct 7, 2024

The tests are not compiling without serde features. To fix, you need to wrap them in cfg(feature = "serde") like here:

#[cfg(feature = "serde")]
mod serde {

@PolkadotDom
Copy link
Contributor Author

The tests are not compiling without serde features. To fix, you need to wrap them in cfg(feature = "serde") like here:

#[cfg(feature = "serde")]
mod serde {

Okay hopefully all works well now 😅 Have run the tests from the github actions file locally so should work.

@ordian ordian merged commit 366a95c into paritytech:master Oct 8, 2024
6 checks passed
@ordian
Copy link
Member

ordian commented Oct 8, 2024

published

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.

3 participants