mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-01 04:17:24 +00:00
Add proper test Custom values (#1147)
* add proper tests for custom values * remove try operators * use sustrate compat for import of hash * add license and hex * add script to artifacts.sh * custom values with ids not in metadata can be accessed in static interface * fmt and clippy * access bytes of custom values directly, even if type id wrong * final fixes * removing substrate-compat flag from ui tests * Update subxt/src/custom_values/custom_values_client.rs Co-authored-by: James Wilson <james@jsdw.me> * remove types access in type generator * 2 extra lines --------- Co-authored-by: James Wilson <james@jsdw.me>
This commit is contained in:
@@ -59,10 +59,7 @@ impl DerivesRegistry {
|
||||
derives: impl IntoIterator<Item = syn::Path>,
|
||||
attributes: impl IntoIterator<Item = syn::Attribute>,
|
||||
) {
|
||||
let type_derives = self
|
||||
.specific_type_derives
|
||||
.entry(ty)
|
||||
.or_insert_with(Derives::new);
|
||||
let type_derives = self.specific_type_derives.entry(ty).or_default();
|
||||
type_derives.derives.extend(derives);
|
||||
type_derives.attributes.extend(attributes);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user