@@ -55,12 +55,12 @@ macro_rules! bbtreeset {
5555}
5656
5757fn fund_account ( acc : AccountId ) {
58- Balances :: mint_into ( & acc, 100 ) . unwrap ( ) ;
58+ assert_ok ! ( Balances :: mint_into( & acc, 100 ) ) ;
5959}
6060
6161fn register_keys ( acc : AccountId ) {
6262 let key = MockSessionKeys { aura : UintAuthorityId ( acc) } ;
63- Session :: set_keys ( RuntimeOrigin :: signed ( acc) , key, Vec :: new ( ) ) . unwrap ( ) ;
63+ assert_ok ! ( Session :: set_keys( RuntimeOrigin :: signed( acc) , key, Vec :: new( ) ) ) ;
6464}
6565
6666fn register_candidates ( range : RangeInclusive < AccountId > ) {
@@ -364,7 +364,7 @@ mod add_invulnerable {
364364 if ii > 5 {
365365 assert_ok ! ( Balances :: mint_into( & ii, 100 ) ) ;
366366 let key = MockSessionKeys { aura : UintAuthorityId ( ii) } ;
367- Session :: set_keys ( RuntimeOrigin :: signed ( ii) , key, Vec :: new ( ) ) . unwrap ( ) ;
367+ assert_ok ! ( Session :: set_keys( RuntimeOrigin :: signed( ii) , key, Vec :: new( ) ) ) ;
368368 }
369369 assert_eq ! ( Balances :: balance( & ii) , 100 ) ;
370370 if ii < 21 {
@@ -3191,8 +3191,7 @@ mod general_tests {
31913191 new_test_ext ( ) . execute_with ( || {
31923192 initialize_to_block ( 1 ) ;
31933193
3194- Balances :: mint_into ( & CollatorStaking :: account_id ( ) , Balances :: minimum_balance ( ) )
3195- . unwrap ( ) ;
3194+ assert_ok ! ( Balances :: mint_into( & CollatorStaking :: account_id( ) , Balances :: minimum_balance( ) ) ) ;
31963195
31973196 // Nothing panics, no reward when no ED in balance
31983197 Authorship :: on_initialize ( 1 ) ;
0 commit comments