Companion for Substrate#8663 (#2945)

* add pallet_authorship to test

* update Substrate

Co-authored-by: parity-processbot <>
This commit is contained in:
ferrell-code
2021-05-03 00:13:23 -04:00
committed by GitHub
parent 2d18b26151
commit 002f49fb03
2 changed files with 156 additions and 157 deletions
+153 -155
View File
File diff suppressed because it is too large Load Diff
+3 -2
View File
@@ -30,8 +30,8 @@ where
{
fn on_nonzero_unbalanced(amount: NegativeImbalance<R>) {
let numeric_amount = amount.peek();
let author = <pallet_authorship::Module<R>>::author();
<pallet_balances::Pallet<R>>::resolve_creating(&<pallet_authorship::Module<R>>::author(), amount);
let author = <pallet_authorship::Pallet<R>>::author();
<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));
}
}
@@ -85,6 +85,7 @@ mod tests {
UncheckedExtrinsic = UncheckedExtrinsic,
{
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>},
Treasury: pallet_treasury::{Pallet, Call, Storage, Config, Event<T>},
}