Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Remove BoundedVec half-impls in xcm #6636

Merged
merged 19 commits into from
Feb 9, 2023

Conversation

KiChjang
Copy link
Contributor

Resolves #6572.

This PR removes the half-impls of bounded vectors in the xcm crate and replaces them with BoundedVec in bounded-collections.

@KiChjang KiChjang added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit. labels Jan 27, 2023
xcm/src/v3/mod.rs Outdated Show resolved Hide resolved
xcm/src/v3/mod.rs Outdated Show resolved Hide resolved
@KiChjang
Copy link
Contributor Author

Must bump substrate after paritytech/substrate#13243 is merged.

@mrcnski mrcnski mentioned this pull request Feb 2, 2023
3 tasks
// Eventually it should be replaced by `DispatchError::max_encoded_len()`.
let worst_error = || MaybeErrorCode::Error(vec![0; 1024]);
let worst_error = || -> MaybeErrorCode {
vec![0; MaxDispatchErrorLen::get() as usize].into()
Copy link
Member

Choose a reason for hiding this comment

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

❤️

@gavofyork
Copy link
Member

Are we waiting for cumulus to build in CI?

@KiChjang
Copy link
Contributor Author

KiChjang commented Feb 8, 2023

Yes, that is the case.

@KiChjang
Copy link
Contributor Author

KiChjang commented Feb 9, 2023

bot merge

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

XCM: Should not contain BoundedVec half-impls
5 participants