@@ -70,6 +70,7 @@ struct ApiTester {
70
70
attester_slashing : AttesterSlashing < E > ,
71
71
proposer_slashing : ProposerSlashing ,
72
72
voluntary_exit : SignedVoluntaryExit ,
73
+ bls_to_execution_change : SignedBlsToExecutionChange ,
73
74
network_rx : NetworkReceivers < E > ,
74
75
local_enr : Enr ,
75
76
external_peer_id : PeerId ,
@@ -223,6 +224,7 @@ impl ApiTester {
223
224
let attester_slashing = harness. make_attester_slashing ( vec ! [ 0 , 1 ] ) ;
224
225
let proposer_slashing = harness. make_proposer_slashing ( 2 ) ;
225
226
let voluntary_exit = harness. make_voluntary_exit ( 3 , harness. chain . epoch ( ) . unwrap ( ) ) ;
227
+ let bls_to_execution_change = harness. make_bls_to_execution_change ( 4 , Address :: zero ( ) ) ;
226
228
227
229
let chain = harness. chain . clone ( ) ;
228
230
@@ -289,6 +291,7 @@ impl ApiTester {
289
291
attester_slashing,
290
292
proposer_slashing,
291
293
voluntary_exit,
294
+ bls_to_execution_change,
292
295
network_rx,
293
296
local_enr,
294
297
external_peer_id,
@@ -336,6 +339,7 @@ impl ApiTester {
336
339
let attester_slashing = harness. make_attester_slashing ( vec ! [ 0 , 1 ] ) ;
337
340
let proposer_slashing = harness. make_proposer_slashing ( 2 ) ;
338
341
let voluntary_exit = harness. make_voluntary_exit ( 3 , harness. chain . epoch ( ) . unwrap ( ) ) ;
342
+ let bls_to_execution_change = harness. make_bls_to_execution_change ( 4 , Address :: zero ( ) ) ;
339
343
340
344
let chain = harness. chain . clone ( ) ;
341
345
@@ -373,6 +377,7 @@ impl ApiTester {
373
377
attester_slashing,
374
378
proposer_slashing,
375
379
voluntary_exit,
380
+ bls_to_execution_change,
376
381
network_rx,
377
382
local_enr,
378
383
external_peer_id,
@@ -5216,6 +5221,7 @@ impl ApiTester {
5216
5221
EventTopic :: FinalizedCheckpoint ,
5217
5222
EventTopic :: AttesterSlashing ,
5218
5223
EventTopic :: ProposerSlashing ,
5224
+ EventTopic :: BlsToExecutionChange ,
5219
5225
] ;
5220
5226
let mut events_future = self
5221
5227
. client
@@ -5246,6 +5252,20 @@ impl ApiTester {
5246
5252
. as_slice( )
5247
5253
) ;
5248
5254
5255
+ // Produce a BLS to execution change event
5256
+ self . client
5257
+ . post_beacon_pool_bls_to_execution_changes ( & [ self . bls_to_execution_change . clone ( ) ] )
5258
+ . await
5259
+ . unwrap ( ) ;
5260
+
5261
+ let bls_events = poll_events ( & mut events_future, 1 , Duration :: from_millis ( 10000 ) ) . await ;
5262
+ assert_eq ! (
5263
+ bls_events. as_slice( ) ,
5264
+ & [ EventKind :: BlsToExecutionChange ( Box :: new(
5265
+ self . bls_to_execution_change. clone( )
5266
+ ) ) ]
5267
+ ) ;
5268
+
5249
5269
// Produce a voluntary exit event
5250
5270
self . client
5251
5271
. post_beacon_pool_voluntary_exits ( & self . voluntary_exit )
0 commit comments