ChargeAssetTxPayment: support providing u32 or MultiLocation in default impl (#1227)

* Asset Id in Config trait

* add example configuring the config

* fmt

* fix Default trait bound

* merge examples, fix default again

* adjust config in examples

* Update subxt/src/config/mod.rs

Co-authored-by: James Wilson <james@jsdw.me>

---------

Co-authored-by: James Wilson <james@jsdw.me>
This commit is contained in:
Tadeo Hepperle
2023-11-03 14:22:48 +01:00
committed by GitHub
parent b472fe5223
commit fd0fe57002
7 changed files with 33 additions and 17 deletions
+3
View File
@@ -51,6 +51,9 @@ pub trait Config: Sized + Send + Sync + 'static {
/// This type defines the extrinsic extra and additional parameters.
type ExtrinsicParams: ExtrinsicParams<Self>;
/// This is used to identify an asset in the `ChargeAssetTxPayment` signed extension.
type AssetId: Debug + Encode;
}
/// given some [`Config`], this return the other params needed for its `ExtrinsicParams`.