Skip to content
Snippets Groups Projects
Commit 9349f0ff authored by Xiliang Chen's avatar Xiliang Chen Committed by GitHub
Browse files

use RuntimeDebug (#1306)

parent 27bd0755
No related merge requests found
......@@ -27,7 +27,7 @@ use cumulus_primitives_core::{
use frame_support::dispatch::Weight;
pub use pallet::*;
use scale_info::TypeInfo;
use sp_runtime::traits::BadOrigin;
use sp_runtime::{traits::BadOrigin, RuntimeDebug};
use sp_std::{convert::TryFrom, prelude::*};
use xcm::{
latest::{ExecuteXcm, Outcome, Parent, Xcm},
......@@ -77,8 +77,7 @@ pub mod pallet {
}
/// Origin for the parachains module.
#[derive(PartialEq, Eq, Clone, Encode, Decode, TypeInfo)]
#[cfg_attr(feature = "std", derive(Debug))]
#[derive(PartialEq, Eq, Clone, Encode, Decode, TypeInfo, RuntimeDebug)]
#[pallet::origin]
pub enum Origin {
/// It comes from the (parent) relay chain.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment