After upgrading to the latest substrate version, I am getting error:
the trait bound `types::DepartmentDetails: scale_info::TypeInfo` is not satisfied
Here is my storage:
#[pallet::storage]
#[pallet::getter(fn department_profile)]
pub type Department<T> = StorageMap<_, Blake2_128Concat, u128, DepartmentDetails>;
DepartmentDetails is a struct
#[derive(PartialEq, Eq, PartialOrd, Ord, Default, Clone, Encode, Decode, RuntimeDebug)]
pub struct DepartmentDetails {
pub name: Vec<u8>,
pub location: Vec<u8>,
pub details: Vec<u8>,
pub departmentid: u128,
}
Version:
git = 'https://github.com/paritytech/substrate.git'
tag = 'monthly-2021-10'
version = '4.0.0-dev'