Skip to content

Commit

Permalink
fix(da_indexer): OP integration (#1116)
Browse files Browse the repository at this point in the history
  • Loading branch information
AllFi authored Nov 12, 2024
1 parent 174a251 commit 4042770
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ pub struct L2BatchOptimism {
blobs: Vec<Blob>,
internal_id: u64,
l1_timestamp: String,
l1_tx_hashes: Vec<String>,
l1_transaction_hashes: Vec<String>,
l2_block_start: u64,
l2_block_end: u64,
tx_count: u64,
transaction_count: u64,
}

pub async fn get_l2_batch(
Expand Down Expand Up @@ -74,7 +74,7 @@ pub async fn get_l2_batch(
l2_batch_id: response.internal_id.to_string(),
l2_start_block: response.l2_block_start,
l2_end_block: response.l2_block_end,
l2_batch_tx_count: response.tx_count as u32,
l2_batch_tx_count: response.transaction_count as u32,
l2_blockscout_url: Url::parse(&config.l2_blockscout_url)?
.join(&format!("batches/{}", response.internal_id))?
.to_string(),
Expand Down
4 changes: 2 additions & 2 deletions da-indexer/da-indexer-logic/src/celestia/tests/l2_router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,13 @@ async fn create_blockscout_mock() -> MockServer {
],
"internal_id": 5,
"l1_timestamp": "2023-12-20T10:17:24.000000Z",
"l1_tx_hashes": [
"l1_transaction_hashes": [
"0xf41211e966ec23032dde713d1f775ae5cb07dc5e15951281e6844d74cc02a930",
"0x9abc0df13890e8c0818b448b15056ecd96368dc2b4f625c1232285e05e5b3826"
],
"l2_block_start": 29996,
"l2_block_end": 33082,
"tx_count": 1
"transaction_count": 1
}
)))
.mount(&mock_server)
Expand Down

0 comments on commit 4042770

Please sign in to comment.