Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit a7a469f

Browse files
xlcgavofyork
authored andcommitted
code cleanup (#2206)
1 parent 26c7b44 commit a7a469f

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

node/runtime/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ impl session::Trait for Runtime {
129129
}
130130

131131
impl staking::Trait for Runtime {
132-
type Currency = balances::Module<Self>;
132+
type Currency = Balances;
133133
type CurrencyToVote = CurrencyToVoteHandler;
134134
type OnRewardMinted = Treasury;
135135
type Event = Event;
@@ -138,7 +138,7 @@ impl staking::Trait for Runtime {
138138
}
139139

140140
impl democracy::Trait for Runtime {
141-
type Currency = balances::Module<Self>;
141+
type Currency = Balances;
142142
type Proposal = Call;
143143
type Event = Event;
144144
}
@@ -160,7 +160,7 @@ impl council::motions::Trait for Runtime {
160160
}
161161

162162
impl treasury::Trait for Runtime {
163-
type Currency = balances::Module<Self>;
163+
type Currency = Balances;
164164
type ApproveOrigin = council_motions::EnsureMembers<_4>;
165165
type RejectOrigin = council_motions::EnsureMembers<_2>;
166166
type Event = Event;
@@ -169,7 +169,7 @@ impl treasury::Trait for Runtime {
169169
}
170170

171171
impl contract::Trait for Runtime {
172-
type Currency = balances::Module<Runtime>;
172+
type Currency = Balances;
173173
type Call = Call;
174174
type Event = Event;
175175
type Gas = u64;

srml/staking/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -413,9 +413,7 @@ type NegativeImbalanceOf<T> = <<T as Trait>::Currency as Currency<<T as system::
413413

414414
pub trait Trait: system::Trait + session::Trait {
415415
/// The staking balance.
416-
type Currency:
417-
Currency<Self::AccountId> +
418-
LockableCurrency<Self::AccountId, Moment=Self::BlockNumber>;
416+
type Currency: LockableCurrency<Self::AccountId, Moment=Self::BlockNumber>;
419417

420418
/// Convert a balance into a number used for election calculation.
421419
/// This must fit into a `u64` but is allowed to be sensibly lossy.

0 commit comments

Comments
 (0)