From dd695f7ace8573ab0ac19178b802868968b40e5c Mon Sep 17 00:00:00 2001 From: Alexander Popiak Date: Sat, 30 Oct 2021 18:39:04 +0200 Subject: [PATCH] remove duplicate Deposit from OnUnbalanced implementation (#4180) closes https://github.com/paritytech/polkadot/issues/4133 --- polkadot/runtime/common/src/impls.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/polkadot/runtime/common/src/impls.rs b/polkadot/runtime/common/src/impls.rs index 4af64ce6ac..abf1e07618 100644 --- a/polkadot/runtime/common/src/impls.rs +++ b/polkadot/runtime/common/src/impls.rs @@ -29,16 +29,10 @@ where ::Event: From>, { fn on_nonzero_unbalanced(amount: NegativeImbalance) { - let numeric_amount = amount.peek(); - let author = >::author(); >::resolve_creating( &>::author(), amount, ); - >::deposit_event(pallet_balances::Event::Deposit( - author, - numeric_amount, - )); } }