xxx: Include DispatchError and use balanace_transfer_with_params

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
Alexandru Vasile
2023-03-08 17:30:26 +02:00
parent 2f17c5cf1d
commit 0583e902b3
68 changed files with 110587 additions and 2 deletions
+10
View File
@@ -165,6 +165,16 @@ pub fn keep_pallet<T: AsRef<str>>(
// Collect type ids from the pallet.
let mut type_ids = collect_pallet_types(pallet);
for ty in metadata.types.types() {
let Some(ident) = ty.ty().path().ident() else {
continue
};
// Collect custom type IDs.
if ident == "DispatchError" {
type_ids.insert(ty.id());
}
}
// sp_runtime:: DispatchError
// Collect extrisic type IDs.
type_ids.insert(metadata.extrinsic.ty.id());