mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 07:01:05 +00:00
Have a pass over metadata validation (#959)
* Have a pass over metadata validation * trait metadata; fold instead of map+for * remove a couple of other XORs, so all uses of it are now commented * appease clippy
This commit is contained in:
@@ -250,7 +250,9 @@ impl Metadata {
|
||||
return hash;
|
||||
}
|
||||
|
||||
let hash = subxt_metadata::get_metadata_per_pallet_hash(self.runtime_metadata(), pallets);
|
||||
let hash = subxt_metadata::MetadataHasher::new()
|
||||
.only_these_pallets(pallets)
|
||||
.hash(self.runtime_metadata());
|
||||
*self.inner.cached_metadata_hash.write() = Some(hash);
|
||||
|
||||
hash
|
||||
|
||||
Reference in New Issue
Block a user