Skip to content

Commit 97fa1b8

Browse files
committed
fix: answer comments
1 parent 2cec69d commit 97fa1b8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

crates/database/db/src/models/batch_commit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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())),

crates/derivation-pipeline/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

crates/providers/src/l1/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)