mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 10:31:03 +00:00
* Fix up balances Events * "Update Substrate" * Update substrate Co-authored-by: parity-processbot <>
This commit is contained in:
Generated
+139
-139
File diff suppressed because it is too large
Load Diff
@@ -26,17 +26,13 @@ where
|
||||
R: pallet_balances::Config + pallet_authorship::Config,
|
||||
<R as frame_system::Config>::AccountId: From<primitives::v1::AccountId>,
|
||||
<R as frame_system::Config>::AccountId: Into<primitives::v1::AccountId>,
|
||||
<R as frame_system::Config>::Event: From<pallet_balances::RawEvent<
|
||||
<R as frame_system::Config>::AccountId,
|
||||
<R as pallet_balances::Config>::Balance,
|
||||
pallet_balances::DefaultInstance>
|
||||
>,
|
||||
<R as frame_system::Config>::Event: From<pallet_balances::Event<R>>,
|
||||
{
|
||||
fn on_nonzero_unbalanced(amount: NegativeImbalance<R>) {
|
||||
let numeric_amount = amount.peek();
|
||||
let author = <pallet_authorship::Module<R>>::author();
|
||||
<pallet_balances::Module<R>>::resolve_creating(&<pallet_authorship::Module<R>>::author(), amount);
|
||||
<frame_system::Module<R>>::deposit_event(pallet_balances::RawEvent::Deposit(author, numeric_amount));
|
||||
<frame_system::Module<R>>::deposit_event(pallet_balances::Event::Deposit(author, numeric_amount));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,11 +43,7 @@ where
|
||||
pallet_treasury::Module<R>: OnUnbalanced<NegativeImbalance<R>>,
|
||||
<R as frame_system::Config>::AccountId: From<primitives::v1::AccountId>,
|
||||
<R as frame_system::Config>::AccountId: Into<primitives::v1::AccountId>,
|
||||
<R as frame_system::Config>::Event: From<pallet_balances::RawEvent<
|
||||
<R as frame_system::Config>::AccountId,
|
||||
<R as pallet_balances::Config>::Balance,
|
||||
pallet_balances::DefaultInstance>
|
||||
>,
|
||||
<R as frame_system::Config>::Event: From<pallet_balances::Event<R>>,
|
||||
{
|
||||
fn on_unbalanceds<B>(mut fees_then_tips: impl Iterator<Item=NegativeImbalance<R>>) {
|
||||
if let Some(fees) = fees_then_tips.next() {
|
||||
|
||||
Reference in New Issue
Block a user