Skip to content
This repository has been archived by the owner on Feb 3, 2024. It is now read-only.

Correct AssetId for XCM trader #96

Merged
merged 1 commit into from
Jun 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion runtime/crab-parachain/src/pallets/polkadot_xcm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ impl XcmCExecutorConfig for XcmConfig {
type OriginConverter = XcmOriginToTransactDispatchOrigin;
type ResponseHandler = PolkadotXcm;
type SubscriptionService = PolkadotXcm;
type Trader = UsingComponents<WeightToFee, KsmLocation, AccountId, Balances, ToAuthor<Runtime>>;
type Trader = UsingComponents<WeightToFee, AnchoringSelfReserve, AccountId, Balances, ToAuthor<Runtime>>;
type Weigher = FixedWeightBounds<UnitWeightCost, Call, MaxInstructions>;
type XcmSender = XcmRouter;
}
Expand Down
2 changes: 1 addition & 1 deletion runtime/darwinia-parachain/src/pallets/polkadot_xcm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ impl XcmCExecutorConfig for XcmConfig {
type OriginConverter = XcmOriginToTransactDispatchOrigin;
type ResponseHandler = PolkadotXcm;
type SubscriptionService = PolkadotXcm;
type Trader = UsingComponents<WeightToFee, DotLocation, AccountId, Balances, ToAuthor<Runtime>>;
type Trader = UsingComponents<WeightToFee, AnchoringSelfReserve, AccountId, Balances, ToAuthor<Runtime>>;
type Weigher = FixedWeightBounds<UnitWeightCost, Call, MaxInstructions>;
type XcmSender = XcmRouter;
}
Expand Down
3 changes: 1 addition & 2 deletions runtime/pangolin-parachain/src/pallets/polkadot_xcm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ pub type XcmOriginToTransactDispatchOrigin = (
);

frame_support::parameter_types! {
pub const RococoLocation: MultiLocation = MultiLocation::parent();
pub const RelayNetwork: NetworkId = NetworkId::Kusama;
pub const MaxInstructions: u32 = 100;
pub AnchoringSelfReserve: MultiLocation = MultiLocation::new(
Expand Down Expand Up @@ -131,7 +130,7 @@ impl XcmCExecutorConfig for XcmConfig {
type ResponseHandler = PolkadotXcm;
type SubscriptionService = PolkadotXcm;
type Trader =
UsingComponents<WeightToFee, RococoLocation, AccountId, Balances, ToAuthor<Runtime>>;
UsingComponents<WeightToFee, AnchoringSelfReserve, AccountId, Balances, ToAuthor<Runtime>>;
type Weigher = FixedWeightBounds<UnitWeightCost, Call, MaxInstructions>;
type XcmSender = XcmRouter;
}
Expand Down