Skip to content

Commit 08f76e0

Browse files
authored
Update to latest master (paritytech#137)
1 parent 1443387 commit 08f76e0

File tree

7 files changed

+417
-211
lines changed

7 files changed

+417
-211
lines changed

Cargo.lock

+150-85
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

runtime/src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,13 @@ impl session::Trait for Runtime {
188188
}
189189

190190
impl staking::Trait for Runtime {
191+
type Currency = Balances;
191192
type OnRewardMinted = Treasury;
192193
type Event = Event;
193194
}
194195

195196
impl democracy::Trait for Runtime {
197+
type Currency = Balances;
196198
type Proposal = Call;
197199
type Event = Event;
198200
}
@@ -212,6 +214,7 @@ impl council::motions::Trait for Runtime {
212214
}
213215

214216
impl treasury::Trait for Runtime {
217+
type Currency = Balances;
215218
type ApproveOrigin = council_motions::EnsureMembers<_4>;
216219
type RejectOrigin = council_motions::EnsureMembers<_2>;
217220
type Event = Event;

runtime/src/parachains.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ use srml_support::dispatch::Result;
3030
use inherents::{ProvideInherent, InherentData, RuntimeString, MakeFatalError, InherentIdentifier};
3131

3232
#[cfg(any(feature = "std", test))]
33-
use sr_primitives::{self, ChildrenStorageMap};
33+
use sr_primitives::{StorageOverlay, ChildrenStorageOverlay};
3434

3535
#[cfg(any(feature = "std", test))]
3636
use rstd::marker::PhantomData;
@@ -54,7 +54,7 @@ decl_storage! {
5454
add_extra_genesis {
5555
config(parachains): Vec<(ParaId, Vec<u8>, Vec<u8>)>;
5656
config(_phdata): PhantomData<T>;
57-
build(|storage: &mut sr_primitives::StorageMap, _: &mut ChildrenStorageMap, config: &GenesisConfig<T>| {
57+
build(|storage: &mut StorageOverlay, _: &mut ChildrenStorageOverlay, config: &GenesisConfig<T>| {
5858
use codec::Encode;
5959

6060
let mut p = config.parachains.clone();

0 commit comments

Comments
 (0)