@@ -192,7 +192,7 @@ impl BenchShellInner {
192192
193193 if let Some ( sections) = extra_sections {
194194 for section in sections {
195- if let Section :: ExtraData ( _) | Section :: Data ( _ ) = section {
195+ if let Section :: ExtraData ( _) = section {
196196 tx. add_section ( section) ;
197197 }
198198 }
@@ -1098,9 +1098,13 @@ impl Client for BenchShell {
10981098 } ) ;
10991099 let masp_fmd_event =
11001100 tx. sections . iter ( ) . find_map ( |section| match section {
1101- sec @ Section :: Data ( Data { data, .. } )
1102- if <Vec < FlagCiphertext > >:: try_from_slice ( data)
1103- . is_ok ( ) =>
1101+ sec @ Section :: ExtraData ( extra_data)
1102+ if extra_data. id ( ) . is_some_and ( |extra_data| {
1103+ <Vec < FlagCiphertext > >:: try_from_slice (
1104+ extra_data,
1105+ )
1106+ . is_ok ( )
1107+ } ) =>
11041108 {
11051109 Some ( AbciEvent :: from ( Event :: from (
11061110 MaspEvent :: FlagCiphertexts {
@@ -1312,7 +1316,8 @@ impl BenchShieldedCtx {
13121316 )
13131317 . expect ( "MASP must have shielded part" ) ;
13141318
1315- let fmd_section = Section :: Data ( Data :: from_borsh_encoded ( & fmd_flags) ) ;
1319+ let fmd_section =
1320+ Section :: ExtraData ( Code :: from_borsh_encoded ( & fmd_flags) ) ;
13161321 let shielded_data = MaspTxData {
13171322 masp_tx_id : shielded. txid ( ) . into ( ) ,
13181323 flag_ciphertext_sechash : fmd_section. get_hash ( ) ,
@@ -1430,7 +1435,7 @@ impl BenchShieldedCtx {
14301435 . into_iter ( )
14311436 . collect ( ) ;
14321437 let masp_tx = tx. tx . get_masp_section ( & masp_tx_id) . unwrap ( ) . clone ( ) ;
1433- let fmd_section = Section :: Data ( Data :: from_borsh_encoded (
1438+ let fmd_section = Section :: ExtraData ( Code :: from_borsh_encoded (
14341439 & std:: iter:: repeat_with ( FlagCiphertext :: default)
14351440 . take (
14361441 masp_tx
0 commit comments