mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 07:31:08 +00:00
Companion for Substrate#8663 (#2945)
* add pallet_authorship to test * update Substrate Co-authored-by: parity-processbot <>
This commit is contained in:
Generated
+153
-155
File diff suppressed because it is too large
Load Diff
@@ -30,8 +30,8 @@ where
|
|||||||
{
|
{
|
||||||
fn on_nonzero_unbalanced(amount: NegativeImbalance<R>) {
|
fn on_nonzero_unbalanced(amount: NegativeImbalance<R>) {
|
||||||
let numeric_amount = amount.peek();
|
let numeric_amount = amount.peek();
|
||||||
let author = <pallet_authorship::Module<R>>::author();
|
let author = <pallet_authorship::Pallet<R>>::author();
|
||||||
<pallet_balances::Pallet<R>>::resolve_creating(&<pallet_authorship::Module<R>>::author(), amount);
|
<pallet_balances::Pallet<R>>::resolve_creating(&<pallet_authorship::Pallet<R>>::author(), amount);
|
||||||
<frame_system::Pallet<R>>::deposit_event(pallet_balances::Event::Deposit(author, numeric_amount));
|
<frame_system::Pallet<R>>::deposit_event(pallet_balances::Event::Deposit(author, numeric_amount));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -85,6 +85,7 @@ mod tests {
|
|||||||
UncheckedExtrinsic = UncheckedExtrinsic,
|
UncheckedExtrinsic = UncheckedExtrinsic,
|
||||||
{
|
{
|
||||||
System: frame_system::{Pallet, Call, Config, Storage, Event<T>},
|
System: frame_system::{Pallet, Call, Config, Storage, Event<T>},
|
||||||
|
Authorship: pallet_authorship::{Pallet, Call, Storage, Inherent},
|
||||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||||
Treasury: pallet_treasury::{Pallet, Call, Storage, Config, Event<T>},
|
Treasury: pallet_treasury::{Pallet, Call, Storage, Config, Event<T>},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user