我想HashMap
用墨水创建一个存储项目!
#[ink(storage)]
pub struct item {
shipment: ink_storage::collections::HashMap<
(AccountId, AccountId),
ink_storage::collections::Vec<u128>,
>,
}
并初始化它:
#[ink(constructor)]
pub fn new() -> Self {
Self {
shipment: ink_storage::collections::HashMap::new(),
}
}
我遇到了这个错误信息
PackedLayout
`ink_storage::Vec 没有实现该特征