发现未知类型,没有 DepartmentDetails 的类型
Unknown types found, no types for DepartmentDetails
我正在尝试在 substrate 中使用 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,
}
在decl_stroage
Department get(fn department_name): map hasher(blake2_128_concat) u128 => DepartmentDetails;
虽然节点成功运行没有错误,但它给 polkadotjs 应用程序报错,说:
发现未知类型,DepartmentDetails
没有类型
我正在尝试在 substrate 中使用 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,
}
在decl_stroage
Department get(fn department_name): map hasher(blake2_128_concat) u128 => DepartmentDetails;
虽然节点成功运行没有错误,但它给 polkadotjs 应用程序报错,说:
发现未知类型,DepartmentDetails