@@ -10,7 +10,7 @@ use std::{
1010use alloy_primitives:: B256 ;
1111use ream_da:: {
1212 availability:: DaAvailability ,
13- column:: { DaContext , DaPayload , VerifiedColumn } ,
13+ column:: { DaContext , VerifiedColumn } ,
1414 error:: DaStoreError ,
1515 id:: { ALL_COLUMNS_MASK , DaColumnId , NUMBER_OF_COLUMNS , column_indices} ,
1616 store:: { DaReadStore , DaWriteStore , InsertOutcome } ,
@@ -248,7 +248,7 @@ impl DaReadStore for DaFileStore {
248248 Ok ( Some ( VerifiedColumn :: new_unchecked (
249249 * id,
250250 DaContext { slot : entry. slot } ,
251- DaPayload :: new ( bytes) ,
251+ bytes,
252252 ) ) )
253253 }
254254
@@ -294,7 +294,7 @@ impl DaWriteStore for DaFileStore {
294294 let path = self . column_path ( & id, slot) ;
295295 let tmp_path = path. with_extension ( "tmp" ) ;
296296 let mut file = fs:: File :: create ( & tmp_path) ?;
297- file. write_all ( column. payload ( ) . as_bytes ( ) ) ?;
297+ file. write_all ( column. payload ( ) ) ?;
298298 file. sync_all ( ) ?;
299299 fs:: rename ( & tmp_path, & path) ?;
300300
@@ -328,7 +328,7 @@ mod tests {
328328
329329 use alloy_primitives:: B256 ;
330330 use ream_da:: {
331- column:: { DaContext , DaPayload , VerifiedColumn } ,
331+ column:: { DaContext , VerifiedColumn } ,
332332 id:: DaColumnId ,
333333 store:: { DaReadStore , DaWriteStore , InsertOutcome } ,
334334 } ;
@@ -347,7 +347,7 @@ mod tests {
347347
348348 fn sample_column ( block_root : B256 , index : u64 , slot : u64 , payload : & [ u8 ] ) -> VerifiedColumn {
349349 let id = DaColumnId :: new ( block_root, index) . expect ( "index within range" ) ;
350- VerifiedColumn :: new_unchecked ( id, DaContext { slot } , DaPayload :: new ( payload. to_vec ( ) ) )
350+ VerifiedColumn :: new_unchecked ( id, DaContext { slot } , payload. to_vec ( ) )
351351 }
352352
353353 #[ test]
@@ -424,7 +424,7 @@ mod tests {
424424
425425 // The originally stored column is untouched...
426426 let fetched = store. get ( & id) . expect ( "get succeeds" ) . expect ( "present" ) ;
427- assert_eq ! ( fetched. payload( ) . as_bytes ( ) , b"original" ) ;
427+ assert_eq ! ( fetched. payload( ) , b"original" ) ;
428428 assert_eq ! ( fetched. context( ) . slot, 10 ) ;
429429 // ...and the ignored slot left no orphan file behind.
430430 assert ! ( !store. column_path( & id, 11 ) . exists( ) ) ;
0 commit comments