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

Looking for some support on - Remove without_storage_info on pallets & migration to BoundedVec ... #11615

@rajesh-nodle

Description

@rajesh-nodle

Is there an existing issue?

  • I have searched the existing issues

Experiencing problems? Have you tried our Stack Exchange first?

  • This is not a support question.

Description of bug

Issue closely related to ...

Trying to migrate instances of Vec to BoundedVec & removal of without_storage_info annotations for nodle pallets.

Hit With some MaxEncodedLen & Clone trait bound errors.

Shared some demo pallet to simplify & reproduce the issue.

https://github.com/rajesh-nodle/tst-demo

Here in this context, integrated BoundedVec as part of struct Validator

https://github.com/rajesh-nodle/tst-demo/blob/d36d477ab1872798c25972acf23c09ecf1fea12a/pallets/tst-demo/src/types.rs#L118

Issue-1 :: Removal of without_storage_info is causing error "the trait MaxEncodedLen is not implemented"

Issue-2 :: Looks like Clone is not derived for const type ConstU32, unable to use it as part of the struct struct Validator

https://github.com/rajesh-nodle/tst-demo/blob/d36d477ab1872798c25972acf23c09ecf1fea12a/pallets/tst-demo/src/mock.rs#L205

Can I have some suggestions on rightway in migrating it?

Steps to reproduce

Metadata

Metadata

Assignees

No one assigned

    Labels

    J2-unconfirmedIssue might be valid, but it’s not yet known.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions