This repository was archived by the owner on Nov 15, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ impl session::Trait for Runtime {
129129}
130130
131131impl 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
140140impl 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
162162impl 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
171171impl 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 ;
Original file line number Diff line number Diff line change @@ -413,9 +413,7 @@ type NegativeImbalanceOf<T> = <<T as Trait>::Currency as Currency<<T as system::
413413
414414pub 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.
You can’t perform that action at this time.
0 commit comments