mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 10:47:55 +00:00
Clippy fixes (#2033)
* clippy fixed * wasm clippy * clippy fixes * post clippy fmt * last clippy fix
This commit is contained in:
@@ -584,10 +584,11 @@ impl<'a> MetadataHasher<'a> {
|
||||
|
||||
let extrinsic_hash = get_extrinsic_hash(&metadata.types, &metadata.extrinsic);
|
||||
|
||||
let custom_values_hash = self
|
||||
.include_custom_values
|
||||
.then(|| get_custom_metadata_hash(&metadata.custom()))
|
||||
.unwrap_or_default();
|
||||
let custom_values_hash = if self.include_custom_values {
|
||||
get_custom_metadata_hash(&metadata.custom())
|
||||
} else {
|
||||
Default::default()
|
||||
};
|
||||
|
||||
concat_and_hash5(
|
||||
&pallet_hash,
|
||||
|
||||
Reference in New Issue
Block a user