mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 22:41:06 +00:00
Strip metadata fix (#1774)
* Fix metadata stripping being too eager closes #1659 --------- Co-authored-by: James Wilson <james@jsdw.me> Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>
This commit is contained in:
@@ -589,7 +589,11 @@ impl<'a> MetadataHasher<'a> {
|
||||
|
||||
// Get the hashes of outer enums, considering only `specific_pallets` (if any are set).
|
||||
// If any of the typed that represent outer enums are encountered later, hashes from `top_level_enum_hashes` can be substituted.
|
||||
let outer_enum_hashes = OuterEnumHashes::new(metadata, self.specific_pallets.as_deref());
|
||||
let outer_enum_hashes = OuterEnumHashes::new(
|
||||
metadata,
|
||||
self.specific_pallets.as_deref(),
|
||||
self.specific_runtime_apis.as_deref(),
|
||||
);
|
||||
|
||||
let pallet_hash = metadata.pallets().fold([0u8; HASH_LEN], |bytes, pallet| {
|
||||
// If specific pallets are given, only include this pallet if it is in the specific pallets.
|
||||
|
||||
Reference in New Issue
Block a user