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

Commit 58c1e48

Browse files
apopiakemostov
authored andcommitted
remove duplicate Deposit from OnUnbalanced implementation (#4180)
closes #4133
1 parent 0025e49 commit 58c1e48

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

runtime/common/src/impls.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,10 @@ where
2929
<R as frame_system::Config>::Event: From<pallet_balances::Event<R>>,
3030
{
3131
fn on_nonzero_unbalanced(amount: NegativeImbalance<R>) {
32-
let numeric_amount = amount.peek();
33-
let author = <pallet_authorship::Pallet<R>>::author();
3432
<pallet_balances::Pallet<R>>::resolve_creating(
3533
&<pallet_authorship::Pallet<R>>::author(),
3634
amount,
3735
);
38-
<frame_system::Pallet<R>>::deposit_event(pallet_balances::Event::Deposit(
39-
author,
40-
numeric_amount,
41-
));
4236
}
4337
}
4438

0 commit comments

Comments
 (0)