Skip to content

Commit

Permalink
add EnsureDecodableXcm
Browse files Browse the repository at this point in the history
  • Loading branch information
shawntabrizi committed Apr 28, 2024
1 parent 7acbe30 commit 62f89dc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// along with Polkadot. If not, see <http://www.gnu.org/licenses/>.

use crate::parachain::{constants::RelayNetwork, AccountId};
use xcm_builder::{HashedDescription, DescribeFamily, DescribeAllTerminal, AccountId32Aliases};
use xcm_builder::{AccountId32Aliases, DescribeAllTerminal, DescribeFamily, HashedDescription};

type LocationToAccountId = (
HashedDescription<AccountId, DescribeFamily<DescribeAllTerminal>>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ pub mod weigher;

use crate::parachain::{MsgQueue, PolkadotXcm, RuntimeCall};
use frame_support::traits::{Everything, Nothing};
use xcm_builder::{FixedRateOfFungible, FrameTransactionalProcessor};
use xcm_builder::{EnsureDecodableXcm, FixedRateOfFungible, FrameTransactionalProcessor};

// Generated from `decl_test_network!`
pub type XcmRouter = crate::ParachainXcmRouter<MsgQueue>;
pub type XcmRouter = EnsureDecodableXcm<crate::ParachainXcmRouter<MsgQueue>>;

pub struct XcmConfig;
impl xcm_executor::Config for XcmConfig {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// along with Polkadot. If not, see <http://www.gnu.org/licenses/>.

use crate::relay_chain::{constants::RelayNetwork, AccountId};
use xcm_builder::{HashedDescription, DescribeFamily, DescribeAllTerminal, AccountId32Aliases};
use xcm_builder::{AccountId32Aliases, DescribeAllTerminal, DescribeFamily, HashedDescription};

type LocationToAccountId = (
HashedDescription<AccountId, DescribeFamily<DescribeAllTerminal>>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ pub mod weigher;

use crate::relay_chain::{RuntimeCall, XcmPallet};
use frame_support::traits::{Everything, Nothing};
use xcm_builder::{FixedRateOfFungible, FrameTransactionalProcessor};
use xcm_builder::{EnsureDecodableXcm, FixedRateOfFungible, FrameTransactionalProcessor};
use xcm_executor::Config;

// Generated from `decl_test_network!`
pub type XcmRouter = crate::RelayChainXcmRouter;
pub type XcmRouter = EnsureDecodableXcm<crate::RelayChainXcmRouter>;

pub struct XcmConfig;
impl Config for XcmConfig {
Expand Down

0 comments on commit 62f89dc

Please sign in to comment.