Skip to content

Commit

Permalink
Remove unnecessary barrier
Browse files Browse the repository at this point in the history
  • Loading branch information
yrong committed Aug 21, 2023
1 parent a0dcfc1 commit 0bd3b76
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions parachain-template/runtime/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ use snowbridge_router_primitives::inbound::GlobalConsensusEthereumAccountConvert
use xcm::latest::prelude::*;
use xcm_builder::{
AccountId32Aliases, AllowExplicitUnpaidExecutionFrom, AllowSubscriptionsFrom,
AllowTopLevelPaidExecutionFrom, AllowUnpaidExecutionFrom, CurrencyAdapter,
DenyReserveTransferToRelayChain, DenyThenTry, EnsureXcmOrigin, FixedWeightBounds, IsConcrete,
NativeAsset, ParentAsSuperuser, ParentIsPreset, RelayChainAsNative, SiblingParachainAsNative,
SiblingParachainConvertsVia, SignedAccountId32AsNative, SignedToAccountId32,
SovereignPaidRemoteExporter, SovereignSignedViaLocation, TakeWeightCredit,
TrailingSetTopicAsId, UsingComponents, WithComputedOrigin, WithUniqueTopic,
AllowTopLevelPaidExecutionFrom, CurrencyAdapter, DenyReserveTransferToRelayChain, DenyThenTry,
EnsureXcmOrigin, FixedWeightBounds, IsConcrete, NativeAsset, ParentAsSuperuser, ParentIsPreset,
RelayChainAsNative, SiblingParachainAsNative, SiblingParachainConvertsVia,
SignedAccountId32AsNative, SignedToAccountId32, SovereignPaidRemoteExporter,
SovereignSignedViaLocation, TakeWeightCredit, TrailingSetTopicAsId, UsingComponents,
WithComputedOrigin, WithUniqueTopic,
};
use xcm_executor::XcmExecutor;

Expand Down Expand Up @@ -86,7 +86,7 @@ pub type XcmOriginToTransactDispatchOrigin = (

parameter_types! {
// One XCM operation is 1_000_000 weight
// Note: Decrease UnitWeightCost here to pass weight check but not for production
// Note: Workaround to decrease UnitWeightCost to pass weight check but not reasonable for production
pub UnitWeightCost: Weight = Weight::from_parts(1_000_000, 4 * 1024);
pub const MaxInstructions: u32 = 100;
pub const MaxAssetsIntoHolding: u32 = 64;
Expand All @@ -107,7 +107,6 @@ pub type Barrier = TrailingSetTopicAsId<
DenyThenTry<
DenyReserveTransferToRelayChain,
(
AllowUnpaidExecutionFrom<Everything>,
TakeWeightCredit,
WithComputedOrigin<
(
Expand Down

0 comments on commit 0bd3b76

Please sign in to comment.