From 4889ab853226ac76704c701aed49fea90ddc8f25 Mon Sep 17 00:00:00 2001 From: Joshy Orndorff Date: Tue, 26 Sep 2023 13:20:59 -0400 Subject: [PATCH] Derive `TypeInfo` for `TestConstraintChecker` --- tuxedo-core/src/constraint_checker.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tuxedo-core/src/constraint_checker.rs b/tuxedo-core/src/constraint_checker.rs index 51c2746b0..6f8a47512 100644 --- a/tuxedo-core/src/constraint_checker.rs +++ b/tuxedo-core/src/constraint_checker.rs @@ -7,6 +7,7 @@ use sp_std::{fmt::Debug, vec::Vec}; use crate::{dynamic_typing::DynamicallyTypedData, types::Output, Verifier}; use parity_scale_codec::{Decode, Encode}; +use scale_info::TypeInfo; #[cfg(feature = "std")] use serde::{Deserialize, Serialize}; use sp_runtime::transaction_validity::TransactionPriority; @@ -82,7 +83,7 @@ pub mod testing { /// A testing checker that passes (with zero priority) or not depending on /// the boolean value enclosed. - #[derive(Serialize, Deserialize, Encode, Decode, Debug, Clone, PartialEq, Eq)] + #[derive(Serialize, Deserialize, Encode, Decode, Debug, Clone, PartialEq, Eq, TypeInfo)] pub struct TestConstraintChecker { /// Whether the checker should pass. pub checks: bool,