Skip to content

Commit

Permalink
works :))
Browse files Browse the repository at this point in the history
  • Loading branch information
Szegoo committed Mar 6, 2024
1 parent a0bd049 commit 6587977
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion runtime/shibuya/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ match_types! {

pub type XcmBarrier = (
TakeWeightCredit,
AllowUnpaidExecutionFrom<Everything>,
AllowTopLevelPaidExecutionFrom<Everything>,
// This will first calculate the derived origin, before checking it against the barrier implementation
WithComputedOrigin<AllowTopLevelPaidExecutionFrom<Everything>, UniversalLocation, ConstU32<8>>,
Expand Down Expand Up @@ -222,7 +223,7 @@ impl xcm_executor::Config for XcmConfig {
type XcmSender = XcmRouter;
type AssetTransactor = AssetTransactors;
type OriginConverter = XcmOriginToTransactDispatchOrigin;
type IsReserve = ReserveAssetFilter;
type IsReserve = Everything;
type IsTeleporter = ();
type UniversalLocation = UniversalLocation;
type Barrier = XcmBarrier;
Expand Down
3 changes: 2 additions & 1 deletion runtime/shiden/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ use xcm_builder::{
EnsureXcmOrigin, FixedWeightBounds, FungiblesAdapter, IsConcrete, NoChecking,
ParentAsSuperuser, ParentIsPreset, RelayChainAsNative, SiblingParachainAsNative,
SiblingParachainConvertsVia, SignedAccountId32AsNative, SignedToAccountId32,
SovereignSignedViaLocation, TakeWeightCredit, UsingComponents, WithComputedOrigin,
SovereignSignedViaLocation, TakeWeightCredit, UsingComponents, WithComputedOrigin, SiblingSystemParachainAsSuperuser,
};
use xcm_executor::{
traits::{Convert as XcmConvert, JustTry, WithOriginFilter},
Expand Down Expand Up @@ -123,6 +123,7 @@ pub type XcmOriginToTransactDispatchOrigin = (
// Native converter for Relay-chain (Parent) location; will convert to a `Relay` origin when
// recognised.
RelayChainAsNative<RelayChainOrigin, RuntimeOrigin>,
SiblingSystemParachainAsSuperuser<cumulus_primitives_core::ParaId, RuntimeOrigin>,
// Native converter for sibling Parachains; will convert to a `SiblingPara` origin when
// recognised.
SiblingParachainAsNative<cumulus_pallet_xcm::Origin, RuntimeOrigin>,
Expand Down

0 comments on commit 6587977

Please sign in to comment.