Skip to content
mock.rs 29.3 KiB
Newer Older
			"wrong current era {} != {}",
			Staking::current_era().unwrap(),
pub(crate) fn staking_events() -> Vec<staking::Event<Test>> {
	System::events().into_iter().map(|r| r.event).filter_map(|e| {
		if let Event::staking(inner) = e {

pub(crate) fn balances(who: &AccountId) -> (Balance, Balance) {
	(Balances::free_balance(who), Balances::reserved_balance(who))
}