Skip to content

Commit

Permalink
Derive TypeInfo for TestConstraintChecker
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshy Orndorff committed Sep 26, 2023
1 parent 4c37143 commit 4889ab8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tuxedo-core/src/constraint_checker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 4889ab8

Please sign in to comment.