mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 01:41:03 +00:00
[xcm-builder] Replaced deprecated CurrencyAdapter with FungibleAdapter (#3287)
I found out during the cleanup of this deprecation message in the `polkadot-fellows` repository that we deprecated `CurrencyAdapter` without making the recommended changes. ## TODO - [ ] fix `polkadot-fellows` bump to 1.6.0 https://github.com/polkadot-fellows/runtimes/pull/159 --------- Co-authored-by: Francisco Aguirre <franciscoaguirreperez@gmail.com>
This commit is contained in:
@@ -103,8 +103,7 @@ impl xcm_executor::traits::MatchesFungible<u64> for MatchAnyFungible {
|
||||
}
|
||||
|
||||
// Use balances as the asset transactor.
|
||||
#[allow(deprecated)]
|
||||
pub type AssetTransactor = xcm_builder::CurrencyAdapter<
|
||||
pub type AssetTransactor = xcm_builder::FungibleAdapter<
|
||||
Balances,
|
||||
MatchAnyFungible,
|
||||
AccountIdConverter,
|
||||
@@ -192,8 +191,7 @@ impl xcm_balances_benchmark::Config for Test {
|
||||
type TrustedReserve = TrustedReserve;
|
||||
|
||||
fn get_asset() -> Asset {
|
||||
let amount =
|
||||
<Balances as frame_support::traits::fungible::Inspect<u64>>::minimum_balance() as u128;
|
||||
let amount = 1_000_000_000_000;
|
||||
Asset { id: AssetId(Here.into()), fun: Fungible(amount) }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user