Skip to content
Snippets Groups Projects
Commit 39a0f09b authored by Éloïs's avatar Éloïs
Browse files

mod(gdev): send all fees to the treasury pot

parent e2a07052
No related branches found
No related tags found
1 merge request!62feat(gdev): add transaction bytes fees (1 cent per byte)
...@@ -168,9 +168,8 @@ macro_rules! pallets_config { ...@@ -168,9 +168,8 @@ macro_rules! pallets_config {
fn on_nonzero_unbalanced(amount: NegativeImbalance) { fn on_nonzero_unbalanced(amount: NegativeImbalance) {
use frame_support::traits::Currency as _; use frame_support::traits::Currency as _;
if let Some(author) = Authorship::author() { // Send all fees to the treasury pot
Balances::resolve_creating(&author, amount); Balances::resolve_creating(&Treasury::account_id(), amount);
}
} }
} }
impl pallet_transaction_payment::Config for Runtime { impl pallet_transaction_payment::Config for Runtime {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment