Skip to content

Commit

Permalink
fix: test_executor_send test
Browse files Browse the repository at this point in the history
  • Loading branch information
TarekkMA committed Nov 8, 2024
1 parent dce7594 commit 9ac5294
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions precompiles/xcm-utils/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ use sp_io;
use sp_runtime::traits::{BlakeTwo256, IdentityLookup, TryConvert};
use sp_runtime::BuildStorage;
use xcm::latest::Error as XcmError;
use xcm_builder::AllowUnpaidExecutionFrom;
use xcm_builder::{AllowUnpaidExecutionFrom, Case};
use xcm_builder::FixedWeightBounds;
use xcm_builder::IsConcrete;
use xcm_builder::SovereignSignedViaLocation;
Expand Down Expand Up @@ -411,6 +411,9 @@ parameter_types! {
[GlobalConsensus(RelayNetwork::get()), Parachain(ParachainId::get().into())].into();

pub const MaxAssetsIntoHolding: u32 = 64;

pub RelayLocation: Location = Location::parent();
pub RelayForeignAsset: (AssetFilter, Location) = (All.into(), RelayLocation::get());
}

pub type XcmOriginToTransactDispatchOrigin = (
Expand All @@ -425,7 +428,7 @@ impl xcm_executor::Config for XcmConfig {
type XcmSender = TestSendXcm;
type AssetTransactor = DummyAssetTransactor;
type OriginConverter = XcmOriginToTransactDispatchOrigin;
type IsReserve = ();
type IsReserve = Case<RelayForeignAsset>;
type IsTeleporter = ();
type UniversalLocation = UniversalLocation;
type Barrier = Barrier;
Expand Down

0 comments on commit 9ac5294

Please sign in to comment.