File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ impl From<BatchCommitData> for ActiveModel {
3535 batch_commit. block_number . try_into ( ) . expect ( "block number should fit in i64" ) ,
3636 ) ,
3737 block_timestamp : ActiveValue :: Set (
38- batch_commit. block_timestamp . try_into ( ) . expect ( "block number should fit in i64" ) ,
38+ batch_commit. block_timestamp . try_into ( ) . expect ( "block timestamp should fit in i64" ) ,
3939 ) ,
4040 calldata : ActiveValue :: Set ( batch_commit. calldata . 0 . to_vec ( ) ) ,
4141 blob_hash : ActiveValue :: Set ( batch_commit. blob_versioned_hash . map ( |b| b. to_vec ( ) ) ) ,
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ pub async fn derive<P: L1Provider>(
6161 . await
6262 . map_err ( Into :: into) ?
6363 . ok_or ( DerivationPipelineError :: MissingL1Message ) ?;
64- let mut bytes = Vec :: new ( ) ;
64+ let mut bytes = Vec :: with_capacity ( l1_message . eip2718_encoded_length ( ) ) ;
6565 l1_message. eip2718_encode ( & mut bytes) ;
6666 txs. push ( bytes. into ( ) ) ;
6767 }
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ impl<P> OnlineL1Provider<P> {
8585}
8686
8787#[ async_trait:: async_trait]
88- impl < P : L1MessageProvider + Sync > L1BlobProvider for OnlineL1Provider < P > {
88+ impl < P : Sync > L1BlobProvider for OnlineL1Provider < P > {
8989 /// Returns the requested blob corresponding to the passed hash.
9090 async fn blob (
9191 & self ,
You can’t perform that action at this time.
0 commit comments