mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 11:07:56 +00:00
[Feature] Introduce storage_alias for CountedStorageMap (#13366)
* [Feature] Introduce storagage_alias for CountedStorageMap * bit more dry * bit more dry * address review comments * some tests and fixes * fix ui tests * Apply suggestions from code review Co-authored-by: Bastian Köcher <git@kchr.de> * compare metadata --------- Co-authored-by: parity-processbot <> Co-authored-by: Bastian Köcher <git@kchr.de>
This commit is contained in:
@@ -543,6 +543,16 @@ mod test {
|
||||
97
|
||||
}
|
||||
}
|
||||
#[crate::storage_alias]
|
||||
type ExampleCountedMap = CountedStorageMap<Prefix, Twox64Concat, u16, u32>;
|
||||
|
||||
#[test]
|
||||
fn storage_alias_works() {
|
||||
TestExternalities::default().execute_with(|| {
|
||||
assert_eq!(ExampleCountedMap::count(), 0);
|
||||
ExampleCountedMap::insert(3, 10);
|
||||
})
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_value_query() {
|
||||
|
||||
Reference in New Issue
Block a user