Skip to content

Commit

Permalink
update to use Tokens in treasury configs
Browse files Browse the repository at this point in the history
  • Loading branch information
lemunozm committed Oct 9, 2023
1 parent b3e52fd commit e8fedd5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion runtime/altair/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ impl pallet_treasury::Config for Runtime {
type Burn = Burn;
// we burn and dont handle the unbalance
type BurnDestination = ();
type Currency = Balances;
type Currency = Tokens;
type MaxApprovals = MaxApprovals;
// slashed amount goes to treasury account
type OnSlash = Treasury;
Expand Down
2 changes: 1 addition & 1 deletion runtime/centrifuge/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,7 @@ impl pallet_treasury::Config for Runtime {
type Burn = Burn;
// we burn and dont handle the unbalance
type BurnDestination = ();
type Currency = Balances;
type Currency = Tokens;
type MaxApprovals = MaxApprovals;
// slashed amount goes to treasury account
type OnSlash = Treasury;
Expand Down
2 changes: 1 addition & 1 deletion runtime/development/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ impl pallet_treasury::Config for Runtime {
type Burn = Burn;
// we burn and dont handle the unbalance
type BurnDestination = ();
type Currency = Balances;
type Currency = Tokens;
type MaxApprovals = MaxApprovals;
// slashed amount goes to treasury account
type OnSlash = Treasury;
Expand Down
2 changes: 1 addition & 1 deletion runtime/integration-tests/src/generic/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ pub trait Runtime:
+ pallet_timestamp::Config<Moment = Moment>
+ pallet_aura::Config<Moment = Moment, AuthorityId = AuraId>
+ pallet_authorship::Config
+ pallet_treasury::Config<Currency = pallet_balances::Pallet<Self>>
+ pallet_treasury::Config<Currency = pallet_restricted_tokens::Pallet<Self>>
+ pallet_transaction_payment::Config<
AccountId = AccountId,
WeightToFee = WeightToFee,
Expand Down

0 comments on commit e8fedd5

Please sign in to comment.