Skip to content

Commit

Permalink
Fix #72 (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiguantong authored Nov 30, 2022
1 parent f12766b commit e68b051
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions core/primitives/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,6 @@ pub const MWEI: Balance = 1_000 * KWEI;
pub const KWEI: Balance = 1_000 * WEI;
/// 1 wei — 1
pub const WEI: Balance = 1;

/// Base balance required for the XCM unit weight
pub const BASE_WEIGHT_FEE: Balance = GWEI;
2 changes: 1 addition & 1 deletion runtime/crab/src/pallets/polkadot_xcm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ impl xcm_executor::Config for XcmExecutorConfig {
type RuntimeCall = RuntimeCall;
type SubscriptionService = PolkadotXcm;
type Trader = UsingComponents<
WeightToFee,
ConstantMultiplier<Balance, ConstU128<{ BASE_WEIGHT_FEE }>>,
AnchoringSelfReserve,
AccountId,
Balances,
Expand Down
2 changes: 1 addition & 1 deletion runtime/darwinia/src/pallets/polkadot_xcm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ impl xcm_executor::Config for XcmExecutorConfig {
type RuntimeCall = RuntimeCall;
type SubscriptionService = PolkadotXcm;
type Trader = UsingComponents<
WeightToFee,
ConstantMultiplier<Balance, ConstU128<{ BASE_WEIGHT_FEE }>>,
AnchoringSelfReserve,
AccountId,
Balances,
Expand Down
2 changes: 1 addition & 1 deletion runtime/pangolin/src/pallets/polkadot_xcm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ impl xcm_executor::Config for XcmExecutorConfig {
type RuntimeCall = RuntimeCall;
type SubscriptionService = PolkadotXcm;
type Trader = UsingComponents<
WeightToFee,
ConstantMultiplier<Balance, ConstU128<{ BASE_WEIGHT_FEE }>>,
AnchoringSelfReserve,
AccountId,
Balances,
Expand Down

0 comments on commit e68b051

Please sign in to comment.