diff --git a/node/runtime/src/lib.rs b/node/runtime/src/lib.rs index d74e7a17e73b5..6e950c8980bbf 100644 --- a/node/runtime/src/lib.rs +++ b/node/runtime/src/lib.rs @@ -129,7 +129,7 @@ impl session::Trait for Runtime { } impl staking::Trait for Runtime { - type Currency = balances::Module; + type Currency = Balances; type CurrencyToVote = CurrencyToVoteHandler; type OnRewardMinted = Treasury; type Event = Event; @@ -138,7 +138,7 @@ impl staking::Trait for Runtime { } impl democracy::Trait for Runtime { - type Currency = balances::Module; + type Currency = Balances; type Proposal = Call; type Event = Event; } @@ -160,7 +160,7 @@ impl council::motions::Trait for Runtime { } impl treasury::Trait for Runtime { - type Currency = balances::Module; + type Currency = Balances; type ApproveOrigin = council_motions::EnsureMembers<_4>; type RejectOrigin = council_motions::EnsureMembers<_2>; type Event = Event; @@ -169,7 +169,7 @@ impl treasury::Trait for Runtime { } impl contract::Trait for Runtime { - type Currency = balances::Module; + type Currency = Balances; type Call = Call; type Event = Event; type Gas = u64; diff --git a/srml/staking/src/lib.rs b/srml/staking/src/lib.rs index 17d0baa5d92b1..6d905c37fb944 100644 --- a/srml/staking/src/lib.rs +++ b/srml/staking/src/lib.rs @@ -413,9 +413,7 @@ type NegativeImbalanceOf = <::Currency as Currency< + - LockableCurrency; + type Currency: LockableCurrency; /// Convert a balance into a number used for election calculation. /// This must fit into a `u64` but is allowed to be sensibly lossy.