Skip to content

Commit 18057de

Browse files
committed
Clean up some trait bounds
1 parent a6c9aec commit 18057de

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

tuxedo-parachain-core/src/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ use cumulus_primitives_parachain_inherent::ParachainInherentData;
5858
use tuxedo_core::{
5959
dynamic_typing::UtxoData,
6060
support_macros::{CloneNoBound, DebugNoBound},
61+
ConstraintChecker,
6162
};
6263

6364
/// A transient storage key that will hold the block number of the relay chain parent
@@ -162,6 +163,6 @@ impl From<ParachainInherentData> for ParachainInherentDataUtxo {
162163
/// A way for the relay chain validators to determine whether a particular parachain
163164
/// extrinsic is the parachain inherent and whether the parachain inherent data can
164165
/// be extracted from it.
165-
pub trait ParachainConstraintChecker {
166+
pub trait ParachainConstraintChecker: ConstraintChecker {
166167
fn is_parachain(&self) -> bool;
167168
}

tuxedo-parachain-core/src/validate_block.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,9 @@ where
7575
// Kind of feels like I'm repeating all the requirements that
7676
// should have been taken care of by the type aliases.
7777
V: Verifier,
78-
C: ConstraintChecker + ParachainConstraintChecker,
78+
C: ParachainConstraintChecker,
7979
Block<V, C>: BlockT<Extrinsic = Transaction<V, C>, Hash = sp_core::H256>,
8080
Transaction<V, C>: Extrinsic,
81-
82-
// Why does this one have to be explicit?
83-
ParachainBlockData<Block<V, C>>: parity_scale_codec::Decode,
8481
{
8582
sp_runtime::runtime_logger::RuntimeLogger::init();
8683
log::info!(target: "tuxvb", "🕵️🕵️🕵️🕵️Entering validate_block implementation");

0 commit comments

Comments
 (0)