我正在尝试在基板中使用 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 应用程序报错,说:
发现未知类型,没有部门详细信息的类型