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.

#[pallet::storage] can not use independently #11481

@yanganto

Description

@yanganto

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

Base on the documentation to migration list as following,

A legacy data structure should be stored in another module as following, such that the migration can be performed.

mod migration {
    use super::*;
    #[frame_support::pallet] 
    pub mod v1 {
       #[pallet::storage]
       pub type Number<T> = StorageValue<_, u64>;
    }
}

However, the #[pallet::config] or possible more things are asked while compiling.
This is a bug to keep both version of data structure at the same time. Also this will be an issue for data migration with the storage described with#[pallet::storage].

Steps to reproduce

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions