From 387976044d8a7d636c360c4c41fd69f057ace76d Mon Sep 17 00:00:00 2001
From: wangjj9219 <183318287@qq.com>
Date: Tue, 18 Feb 2020 18:02:45 +0800
Subject: [PATCH] add constructor for CheckOperator (#95)

---
 oracle/src/lib.rs | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/oracle/src/lib.rs b/oracle/src/lib.rs
index 3463481..f9c9e9e 100644
--- a/oracle/src/lib.rs
+++ b/oracle/src/lib.rs
@@ -145,6 +145,12 @@ impl<T: Trait> Module<T> {
 #[derive(Encode, Decode, Clone, Eq, PartialEq)]
 pub struct CheckOperator<T: Trait + Send + Sync>(sp_std::marker::PhantomData<T>);
 
+impl<T: Trait + Send + Sync> CheckOperator<T> {
+	pub fn new() -> Self {
+		Self(sp_std::marker::PhantomData)
+	}
+}
+
 impl<T: Trait + Send + Sync> sp_std::fmt::Debug for CheckOperator<T> {
 	#[cfg(feature = "std")]
 	fn fmt(&self, f: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result {
-- 
GitLab