Skip to content

Commit

Permalink
Merge pull request #10 from blocktorch-xyz/block-1429-add-block-numbe…
Browse files Browse the repository at this point in the history
…r-to-op-batch-message

feat: add block number
  • Loading branch information
catalyst17 committed Jan 29, 2024
2 parents 8c0ac82 + 830491c commit 0a14315
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion proto/op_batch_inbox_call_data.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ message OpBatchInboxCallData {
string tx_hash = 1;
string batcher_address = 2;
string batch_inbox_address = 3;
string call_data = 4;
string call_data = 4;
uint64 block_number = 5;
}
3 changes: 2 additions & 1 deletion src/map_filter_op_batch_inbox_transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ fn map_filter_op_batch_inbox_transactions(params: String, blk: Block) -> Result<
tx_hash: Hex::encode(&tx.hash),
batcher_address: Hex::encode(&tx.from),
batch_inbox_address: Hex::encode(&tx.to),
call_data: Hex::encode(&tx.input)
call_data: Hex::encode(&tx.input),
block_number: blk.number
})
.collect();

Expand Down
2 changes: 2 additions & 0 deletions src/pb/eth.blocktorch.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ pub struct OpBatchInboxCallData {
pub batch_inbox_address: ::prost::alloc::string::String,
#[prost(string, tag="4")]
pub call_data: ::prost::alloc::string::String,
#[prost(uint64, tag="5")]
pub block_number: u64,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
Expand Down

0 comments on commit 0a14315

Please sign in to comment.