Skip to content
Snippets Groups Projects
Commit 9ff3091e authored by thiolliere's avatar thiolliere Committed by GitHub
Browse files

Companion PR for treasury weight update (merged) Fix polkadot with substrate master (#1044)

* fix tests

* add cargo lock

* update substrate
parent 365af458
No related merge requests found
This diff is collapsed.
......@@ -566,7 +566,7 @@ mod tests {
impl_outer_origin, assert_ok, assert_noop, parameter_types,
traits::{OnInitialize, OnFinalize},
};
use frame_support::traits::Contains;
use frame_support::traits::{Contains, ContainsLengthBound};
use sp_core::H256;
use primitives::parachain::{Info as ParaInfo, Id as ParaId, Scheduling, ValidationCode};
// The testing primitives are very useful for avoiding having to work with signatures
......@@ -645,6 +645,10 @@ mod tests {
#[cfg(feature = "runtime-benchmarks")]
fn add(_: &u64) { unimplemented!() }
}
impl ContainsLengthBound for Nobody {
fn min_len() -> usize { 0 }
fn max_len() -> usize { 0 }
}
impl treasury::Trait for Test {
type Currency = balances::Module<Test>;
type ApproveOrigin = system::EnsureRoot<u64>;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment