Skip to content

Commit a0e7d00

Browse files
committed
fix: function proxy issue
1 parent 40cb106 commit a0e7d00

File tree

1 file changed

+2
-4
lines changed
  • crates/database/db/src

1 file changed

+2
-4
lines changed

crates/database/db/src/db.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,8 @@ impl DatabaseWriteOperations for Database {
167167
&self,
168168
block_number: u64,
169169
) -> Result<u64, DatabaseError> {
170-
self.tx_mut(
171-
move |tx| async move { tx.delete_l2_blocks_gt_block_number(block_number).await },
172-
)
173-
.await
170+
self.tx_mut(move |tx| async move { tx.delete_batches_gt_block_number(block_number).await })
171+
.await
174172
}
175173

176174
async fn delete_batches_gt_batch_index(&self, batch_index: u64) -> Result<u64, DatabaseError> {

0 commit comments

Comments
 (0)