mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 02:51:08 +00:00
xxx: Include DispatchError and use balanace_transfer_with_params
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user