File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -312,11 +312,11 @@ impl BlobTransactionSidecar {
312
312
I : IntoIterator < Item = B > ,
313
313
B : AsRef < str > ,
314
314
{
315
- let blobs = blobs
316
- . into_iter ( )
317
- . map ( |blob| c_kzg:: Blob :: from_hex ( blob. as_ref ( ) ) )
318
- . collect :: < Result < Vec < _ > , _ > > ( ) ? ;
319
- Self :: try_from_blobs ( blobs )
315
+ let mut b = Vec :: new ( ) ;
316
+ for blob in blobs {
317
+ b . push ( c_kzg:: Blob :: from_hex ( blob. as_ref ( ) ) ? )
318
+ }
319
+ Self :: try_from_blobs ( b )
320
320
}
321
321
322
322
/// Tries to create a new [`BlobTransactionSidecar`] from the given blob bytes.
@@ -328,11 +328,11 @@ impl BlobTransactionSidecar {
328
328
I : IntoIterator < Item = B > ,
329
329
B : AsRef < [ u8 ] > ,
330
330
{
331
- let blobs = blobs
332
- . into_iter ( )
333
- . map ( |blob| c_kzg:: Blob :: from_bytes ( blob. as_ref ( ) ) )
334
- . collect :: < Result < Vec < _ > , _ > > ( ) ? ;
335
- Self :: try_from_blobs ( blobs )
331
+ let mut b = Vec :: new ( ) ;
332
+ for blob in blobs {
333
+ b . push ( c_kzg:: Blob :: from_bytes ( blob. as_ref ( ) ) ? )
334
+ }
335
+ Self :: try_from_blobs ( b )
336
336
}
337
337
338
338
/// Tries to create a new [`BlobTransactionSidecar`] from the given blobs.
You can’t perform that action at this time.
0 commit comments