@@ -5252,30 +5252,30 @@ impl ApiTester {
5252
5252
. as_slice( )
5253
5253
) ;
5254
5254
5255
- // Produce a BLS to execution change event
5255
+ // Produce a voluntary exit event
5256
5256
self . client
5257
- . post_beacon_pool_bls_to_execution_changes ( & [ self . bls_to_execution_change . clone ( ) ] )
5257
+ . post_beacon_pool_voluntary_exits ( & self . voluntary_exit )
5258
5258
. await
5259
5259
. unwrap ( ) ;
5260
5260
5261
- let bls_events = poll_events ( & mut events_future, 1 , Duration :: from_millis ( 10000 ) ) . await ;
5261
+ let exit_events = poll_events ( & mut events_future, 1 , Duration :: from_millis ( 10000 ) ) . await ;
5262
5262
assert_eq ! (
5263
- bls_events. as_slice( ) ,
5264
- & [ EventKind :: BlsToExecutionChange ( Box :: new(
5265
- self . bls_to_execution_change. clone( )
5266
- ) ) ]
5263
+ exit_events. as_slice( ) ,
5264
+ & [ EventKind :: VoluntaryExit ( self . voluntary_exit. clone( ) ) ]
5267
5265
) ;
5268
5266
5269
- // Produce a voluntary exit event
5267
+ // Produce a BLS to execution change event
5270
5268
self . client
5271
- . post_beacon_pool_voluntary_exits ( & self . voluntary_exit )
5269
+ . post_beacon_pool_bls_to_execution_changes ( & [ self . bls_to_execution_change . clone ( ) ] )
5272
5270
. await
5273
5271
. unwrap ( ) ;
5274
5272
5275
- let exit_events = poll_events ( & mut events_future, 1 , Duration :: from_millis ( 10000 ) ) . await ;
5273
+ let bls_events = poll_events ( & mut events_future, 1 , Duration :: from_millis ( 10000 ) ) . await ;
5276
5274
assert_eq ! (
5277
- exit_events. as_slice( ) ,
5278
- & [ EventKind :: VoluntaryExit ( self . voluntary_exit. clone( ) ) ]
5275
+ bls_events. as_slice( ) ,
5276
+ & [ EventKind :: BlsToExecutionChange ( Box :: new(
5277
+ self . bls_to_execution_change. clone( )
5278
+ ) ) ]
5279
5279
) ;
5280
5280
5281
5281
// Submit the next block, which is on an epoch boundary, so this will produce a finalized
0 commit comments