Skip to content

Commit

Permalink
chore(protocol): Overlapped Tx (#239)
Browse files Browse the repository at this point in the history
### Description

Fixes the `maili-protocol` overlapped transaction test.

Closes #220
  • Loading branch information
refcell authored Feb 11, 2025
1 parent 3cd6bce commit fbf3fa5
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions crates/protocol/src/batch/span.rs
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,6 @@ mod tests {
));
}

#[ignore]
#[tokio::test]
async fn test_check_batch_overlapping_blocks_tx_mismatch() {
let trace_store: TraceStorage = Default::default();
Expand Down Expand Up @@ -834,7 +833,22 @@ mod tests {
op_blocks: vec![OpBlock {
header: Header { number: 9, ..Default::default() },
body: alloy_consensus::BlockBody {
transactions: vec![],
transactions: vec![op_alloy_consensus::OpTxEnvelope::Eip1559(
alloy_consensus::Signed::new_unchecked(
alloy_consensus::TxEip1559 {
chain_id: 0,
nonce: 0,
gas_limit: 2,
max_fee_per_gas: 1,
max_priority_fee_per_gas: 1,
to: alloy_primitives::TxKind::Create,
value: alloy_primitives::U256::from(3),
..Default::default()
},
alloy_primitives::PrimitiveSignature::test_signature(),
alloy_primitives::B256::ZERO,
),
)],
ommers: Vec::new(),
withdrawals: None,
},
Expand Down

0 comments on commit fbf3fa5

Please sign in to comment.