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

convert Theme properties to BoundedVec #159

Merged
merged 4 commits into from
Jun 10, 2022

Conversation

bmacer
Copy link
Contributor

@bmacer bmacer commented Jun 1, 2022

fixes #132

@bmacer bmacer requested review from ilionic and HashWarlock June 1, 2022 16:48
Copy link
Contributor

@ilionic ilionic left a comment

Choose a reason for hiding this comment

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

Readability could be improved in one area, also suggest to configure fmt and Clippy to run on save to auto format and pick up warnings early on.

@@ -337,7 +337,7 @@ pub mod pallet {
pub fn theme_add(
origin: OriginFor<T>,
base_id: BaseId,
theme: Theme<BoundedVec<u8, T::StringLimit>>,
theme: Theme<BoundedVec<u8, T::StringLimit>, BoundedVec<ThemeProperty<BoundedVec<u8, T::StringLimit>>, T::MaxPropertiesPerTheme>>,
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm this looks a bit hard on the eye. Also Clippy complaining:
very complex type used. Consider factoring parts into `type` definitions

@ilionic ilionic self-requested a review June 10, 2022 00:00
@ilionic ilionic merged commit 9aecaff into main Jun 10, 2022
@ilionic ilionic deleted the bug/132-convert-properties-to-bounded-vec branch June 10, 2022 00:01
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.

Theme has Properties vec, needs converted to BoundedVec
2 participants