diff --git a/precompiles/pallet-xcm/Cargo.toml b/precompiles/pallet-xcm/Cargo.toml index ea7c8d58..526a52ea 100644 --- a/precompiles/pallet-xcm/Cargo.toml +++ b/precompiles/pallet-xcm/Cargo.toml @@ -10,7 +10,7 @@ log = { workspace = true } num_enum = { workspace = true } # Moonbeam -precompile-utils = { workspace = true } +precompile-utils = { workspace = true, features = ["codec-xcm"] } xcm-primitives = { workspace = true } # Substrate diff --git a/precompiles/pallet-xcm/src/lib.rs b/precompiles/pallet-xcm/src/lib.rs index cc533470..0834e0f1 100644 --- a/precompiles/pallet-xcm/src/lib.rs +++ b/precompiles/pallet-xcm/src/lib.rs @@ -26,7 +26,7 @@ use precompile_utils::prelude::*; use sp_core::{MaxEncodedLen, H256, U256}; use sp_runtime::traits::Dispatchable; -use sp_std::marker::PhantomData; +use sp_std::{boxed::Box, marker::PhantomData, vec, vec::Vec}; use sp_weights::Weight; use xcm::{ latest::{Asset, AssetId, Assets, Fungibility, Location}, diff --git a/primitives/xcm/src/lib.rs b/primitives/xcm/src/lib.rs index 64bcfc08..6b193b56 100644 --- a/primitives/xcm/src/lib.rs +++ b/primitives/xcm/src/lib.rs @@ -19,6 +19,7 @@ #![cfg_attr(not(feature = "std"), no_std)] use sp_runtime::DispatchResult; +use sp_std::vec::Vec; pub mod generators; pub mod location_matcher;