Skip to content
Snippets Groups Projects
Unverified Commit 44bfd417 authored by Xiliang Chen's avatar Xiliang Chen Committed by GitHub
Browse files

fix oracle (#29)

* fix oracle

* fix warning
parent 2f39a655
No related branches found
No related tags found
No related merge requests found
......@@ -56,8 +56,6 @@ impl system::Trait for Runtime {
type Version = ();
}
pub type System = system::Module<Runtime>;
pub struct Handler;
impl AuctionHandler<AccountId, Balance, BlockNumber, AuctionId> for Handler {
......
......@@ -17,7 +17,7 @@ utilities = { package = "orml-utilities", path = "../utilities", default-feature
primitives = { git = "https://github.com/paritytech/substrate.git", package = "substrate-primitives", default-features = false }
[dev-dependencies]
timestamp = { package = "srml-timestamp", git = "https://github.com/paritytech/substrate.git", default-features = false }
timestamp = { package = "srml-timestamp", git = "https://github.com/paritytech/substrate.git" }
[features]
......@@ -33,5 +33,4 @@ std = [
"traits/std",
"utilities/std",
"primitives/std",
"timestamp/std",
]
......@@ -7,3 +7,13 @@ pub trait OperatorProvider<AccountId> {
// return a list of operators
fn operators() -> Vec<AccountId>;
}
impl<AccountId> OperatorProvider<AccountId> for () {
fn can_feed_data(_who: &AccountId) -> bool {
false
}
fn operators() -> Vec<AccountId> {
Vec::new()
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment