Skip to content

Commit 79a532a

Browse files
Merge branch 'main' into ak-add-polkadot-parachain-2
2 parents d315f18 + 288c090 commit 79a532a

File tree

1 file changed

+6
-33
lines changed
  • runtimes/bulletin-westend/src

1 file changed

+6
-33
lines changed

runtimes/bulletin-westend/src/lib.rs

Lines changed: 6 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -972,42 +972,15 @@ impl_runtime_apis! {
972972
}
973973

974974
fn reserve_transferable_asset_and_dest() -> Option<(Asset, Location)> {
975-
// Non-system parachains use reserve transfers for WND from Asset Hub.
976-
Some((
977-
Asset {
978-
fun: Fungible(ExistentialDeposit::get()),
979-
id: AssetId(Parent.into())
980-
},
981-
AssetHubLocation::get(),
982-
))
975+
// The extrinsic enabled by this benchmark is blocked for the relay token.
976+
// See: https://github.com/paritytech/polkadot-sdk/issues/9054
977+
None
983978
}
984979

985980
fn set_up_complex_asset_transfer() -> Option<(Assets, u32, Location, alloc::boxed::Box<dyn FnOnce()>)> {
986-
// Bulletin-westend is a non-system parachain that uses reserve transfers for the relay token.
987-
// We set up a reserve transfer of the native token (relay token) to AssetHub.
988-
use frame_support::traits::fungible::{Inspect, Mutate};
989-
990-
let dest = AssetHubLocation::get();
991-
let fee_amount: Balance = ExistentialDeposit::get();
992-
let fee_asset: Asset = (Location::parent(), fee_amount).into();
993-
994-
let who = frame_benchmarking::whitelisted_caller();
995-
// Give some multiple of the existential deposit
996-
let balance: Balance = fee_amount + ExistentialDeposit::get() * 1000;
997-
let _ = <Balances as Mutate<_>>::mint_into(&who, balance);
998-
// verify initial balance
999-
assert_eq!(<Balances as Inspect<_>>::balance(&who), balance);
1000-
1001-
let assets: Assets = vec![fee_asset.clone()].into();
1002-
let fee_index = 0u32;
1003-
1004-
// verify transferred successfully
1005-
let verify = alloc::boxed::Box::new(move || {
1006-
// verify balance after transfer, decreased by transferred amount
1007-
// (plus transport/remote fees)
1008-
assert!(<Balances as Inspect<_>>::balance(&who) <= balance - fee_amount);
1009-
});
1010-
Some((assets, fee_index, dest, verify))
981+
// The extrinsic enabled by this benchmark is blocked for the relay token.
982+
// See: https://github.com/paritytech/polkadot-sdk/issues/9054
983+
None
1011984
}
1012985

1013986
fn get_asset() -> Asset {

0 commit comments

Comments
 (0)