From af8be433641ef75cbb0acf3651d63a48471b9729 Mon Sep 17 00:00:00 2001 From: Xavier Lau Date: Wed, 17 Jan 2024 16:53:11 +0800 Subject: [PATCH] Fix --- runtime/crab/src/pallets/tx_pause.rs | 18 +++++++++--------- runtime/darwinia/src/pallets/tx_pause.rs | 18 +++++++++--------- runtime/pangolin/src/pallets/tx_pause.rs | 18 +++++++++--------- runtime/pangoro/src/pallets/tx_pause.rs | 18 +++++++++--------- 4 files changed, 36 insertions(+), 36 deletions(-) diff --git a/runtime/crab/src/pallets/tx_pause.rs b/runtime/crab/src/pallets/tx_pause.rs index 055a88b80..dcac67a41 100644 --- a/runtime/crab/src/pallets/tx_pause.rs +++ b/runtime/crab/src/pallets/tx_pause.rs @@ -20,15 +20,15 @@ use crate::*; pub struct TxPauseWhitelistedCalls; -#[cfg(feature = "runtime-benchmarks")] -impl frame_support::traits::Contains> - for TxPauseWhitelistedCalls -{ - fn contains(_: &pallet_tx_pause::RuntimeCallNameOf) -> bool { - false - } -} -#[cfg(not(feature = "runtime-benchmarks"))] +// #[cfg(feature = "runtime-benchmarks")] +// impl frame_support::traits::Contains> +// for TxPauseWhitelistedCalls +// { +// fn contains(_: &pallet_tx_pause::RuntimeCallNameOf) -> bool { +// false +// } +// } +// #[cfg(not(feature = "runtime-benchmarks"))] impl frame_support::traits::Contains> for TxPauseWhitelistedCalls { diff --git a/runtime/darwinia/src/pallets/tx_pause.rs b/runtime/darwinia/src/pallets/tx_pause.rs index 055a88b80..dcac67a41 100644 --- a/runtime/darwinia/src/pallets/tx_pause.rs +++ b/runtime/darwinia/src/pallets/tx_pause.rs @@ -20,15 +20,15 @@ use crate::*; pub struct TxPauseWhitelistedCalls; -#[cfg(feature = "runtime-benchmarks")] -impl frame_support::traits::Contains> - for TxPauseWhitelistedCalls -{ - fn contains(_: &pallet_tx_pause::RuntimeCallNameOf) -> bool { - false - } -} -#[cfg(not(feature = "runtime-benchmarks"))] +// #[cfg(feature = "runtime-benchmarks")] +// impl frame_support::traits::Contains> +// for TxPauseWhitelistedCalls +// { +// fn contains(_: &pallet_tx_pause::RuntimeCallNameOf) -> bool { +// false +// } +// } +// #[cfg(not(feature = "runtime-benchmarks"))] impl frame_support::traits::Contains> for TxPauseWhitelistedCalls { diff --git a/runtime/pangolin/src/pallets/tx_pause.rs b/runtime/pangolin/src/pallets/tx_pause.rs index 055a88b80..dcac67a41 100644 --- a/runtime/pangolin/src/pallets/tx_pause.rs +++ b/runtime/pangolin/src/pallets/tx_pause.rs @@ -20,15 +20,15 @@ use crate::*; pub struct TxPauseWhitelistedCalls; -#[cfg(feature = "runtime-benchmarks")] -impl frame_support::traits::Contains> - for TxPauseWhitelistedCalls -{ - fn contains(_: &pallet_tx_pause::RuntimeCallNameOf) -> bool { - false - } -} -#[cfg(not(feature = "runtime-benchmarks"))] +// #[cfg(feature = "runtime-benchmarks")] +// impl frame_support::traits::Contains> +// for TxPauseWhitelistedCalls +// { +// fn contains(_: &pallet_tx_pause::RuntimeCallNameOf) -> bool { +// false +// } +// } +// #[cfg(not(feature = "runtime-benchmarks"))] impl frame_support::traits::Contains> for TxPauseWhitelistedCalls { diff --git a/runtime/pangoro/src/pallets/tx_pause.rs b/runtime/pangoro/src/pallets/tx_pause.rs index 055a88b80..dcac67a41 100644 --- a/runtime/pangoro/src/pallets/tx_pause.rs +++ b/runtime/pangoro/src/pallets/tx_pause.rs @@ -20,15 +20,15 @@ use crate::*; pub struct TxPauseWhitelistedCalls; -#[cfg(feature = "runtime-benchmarks")] -impl frame_support::traits::Contains> - for TxPauseWhitelistedCalls -{ - fn contains(_: &pallet_tx_pause::RuntimeCallNameOf) -> bool { - false - } -} -#[cfg(not(feature = "runtime-benchmarks"))] +// #[cfg(feature = "runtime-benchmarks")] +// impl frame_support::traits::Contains> +// for TxPauseWhitelistedCalls +// { +// fn contains(_: &pallet_tx_pause::RuntimeCallNameOf) -> bool { +// false +// } +// } +// #[cfg(not(feature = "runtime-benchmarks"))] impl frame_support::traits::Contains> for TxPauseWhitelistedCalls {