Skip to content

Commit

Permalink
bet
Browse files Browse the repository at this point in the history
  • Loading branch information
hoank101 committed Dec 21, 2024
1 parent fdf000a commit 5ec0729
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/optimism/src/transaction/abstraction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,14 +183,17 @@ impl<T: Transaction> OpTxTrait for OpTransaction<T> {
}

#[cfg(test)]
#[cfg(feature = "std")]
mod tests {
use super::*;
use revm::primitives::{Address, U256, B256};
use std::panic;


// Helper macro for testing panic messages
macro_rules! assert_panic {
($expected:expr, $($eval:tt)+) => {
let result = std::panic::catch_unwind(|| {
let result = panic::catch_unwind(|| {
$($eval)+
});
assert!(result.is_err());
Expand Down

0 comments on commit 5ec0729

Please sign in to comment.