relax `XcmFeeToAccount` trait bound on `AccountId` (#4959)
Fixes #4960 Configuring `FeeManager` enforces the boundary `Into<[u8; 32]>` for the `AccountId` type. Here is how it works currently: Configuration: ```rust type FeeManager = XcmFeeManagerFromComponents< IsChildSystemParachain<primitives::Id>, XcmFeeToAccount<Self::AssetTransactor, AccountId, TreasuryAccount>, >; ``` `XcmToFeeAccount` struct: ```rust /// A `HandleFee` implementation that simply deposits the fees into a specific on-chain /// `ReceiverAccount`. /// /// It reuses the `AssetTransactor` configured on the XCM executor to deposit fee assets. If /// the `AssetTransactor` returns an error while calling `deposit_asset`, then a warning will be /// logged and the fee burned. pub struct XcmFeeToAccount<AssetTransactor, AccountId, ReceiverAccount>( PhantomData<(AssetTransactor, AccountId, ReceiverAccount)>, ); impl< AssetTransactor: TransactAsset, AccountId: Clone + Into<[u8; 32]>, ReceiverAccount: Get<Acco...
Showing
- Cargo.lock 1 addition, 0 deletionsCargo.lock
- cumulus/parachains/runtimes/assets/asset-hub-rococo/src/xcm_config.rs 3 additions, 3 deletions...chains/runtimes/assets/asset-hub-rococo/src/xcm_config.rs
- cumulus/parachains/runtimes/assets/asset-hub-westend/src/xcm_config.rs 2 additions, 3 deletions...hains/runtimes/assets/asset-hub-westend/src/xcm_config.rs
- cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/xcm_config.rs 14 additions, 11 deletions.../runtimes/bridge-hubs/bridge-hub-rococo/src/xcm_config.rs
- cumulus/parachains/runtimes/bridge-hubs/bridge-hub-westend/src/xcm_config.rs 5 additions, 5 deletions...runtimes/bridge-hubs/bridge-hub-westend/src/xcm_config.rs
- cumulus/parachains/runtimes/collectives/collectives-westend/src/xcm_config.rs 5 additions, 5 deletions...untimes/collectives/collectives-westend/src/xcm_config.rs
- cumulus/parachains/runtimes/contracts/contracts-rococo/src/xcm_config.rs 5 additions, 5 deletions...ins/runtimes/contracts/contracts-rococo/src/xcm_config.rs
- cumulus/parachains/runtimes/coretime/coretime-rococo/src/xcm_config.rs 3 additions, 3 deletions...hains/runtimes/coretime/coretime-rococo/src/xcm_config.rs
- cumulus/parachains/runtimes/coretime/coretime-westend/src/xcm_config.rs 3 additions, 3 deletions...ains/runtimes/coretime/coretime-westend/src/xcm_config.rs
- cumulus/parachains/runtimes/people/people-rococo/src/xcm_config.rs 5 additions, 5 deletions...arachains/runtimes/people/people-rococo/src/xcm_config.rs
- cumulus/parachains/runtimes/people/people-westend/src/xcm_config.rs 5 additions, 5 deletions...rachains/runtimes/people/people-westend/src/xcm_config.rs
- cumulus/parachains/runtimes/testing/penpal/src/xcm_config.rs 6 additions, 6 deletionscumulus/parachains/runtimes/testing/penpal/src/xcm_config.rs
- polkadot/runtime/rococo/src/xcm_config.rs 5 additions, 5 deletionspolkadot/runtime/rococo/src/xcm_config.rs
- polkadot/runtime/westend/src/xcm_config.rs 2 additions, 3 deletionspolkadot/runtime/westend/src/xcm_config.rs
- polkadot/xcm/Cargo.toml 7 additions, 1 deletionpolkadot/xcm/Cargo.toml
- polkadot/xcm/pallet-xcm/src/mock.rs 3 additions, 3 deletionspolkadot/xcm/pallet-xcm/src/mock.rs
- polkadot/xcm/src/v4/location.rs 6 additions, 0 deletionspolkadot/xcm/src/v4/location.rs
- polkadot/xcm/xcm-builder/src/fee_handling.rs 46 additions, 21 deletionspolkadot/xcm/xcm-builder/src/fee_handling.rs
- polkadot/xcm/xcm-builder/src/lib.rs 1 addition, 1 deletionpolkadot/xcm/xcm-builder/src/lib.rs
- prdoc/pr_4959.prdoc 45 additions, 0 deletionsprdoc/pr_4959.prdoc
Please register or sign in to comment