File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ use alloy_rpc_types_mev::EthCallBundle;
9
9
use revm:: primitives:: { EVMError , ExecutionResult } ;
10
10
use thiserror:: Error ;
11
11
12
- #[ derive( Debug , Clone , Error ) ]
12
+ #[ derive( Clone , Error ) ]
13
13
enum BundleError < Db : revm:: Database > {
14
14
#[ error( "revm block number must match the bundle block number" ) ]
15
15
BlockNumberMismatch ,
@@ -27,6 +27,17 @@ impl<Db: revm::Database> From<EVMError<Db::Error>> for BundleError<Db> {
27
27
}
28
28
}
29
29
30
+ impl < Db : revm:: Database > std:: fmt:: Debug for BundleError < Db > {
31
+ fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
32
+ match self {
33
+ Self :: BlockNumberMismatch => write ! ( f, "BlockNumberMismatch" ) ,
34
+ Self :: BundleReverted => write ! ( f, "BundleReverted" ) ,
35
+ Self :: TransactionDecodingError ( e) => write ! ( f, "TransactionDecodingError({:?})" , e) ,
36
+ Self :: EVMError { .. } => write ! ( f, "EVMError" ) ,
37
+ }
38
+ }
39
+ }
40
+
30
41
/// A block filler for the bundle, used to fill in the block data specified for the bundle.
31
42
#[ derive( Clone , Debug ) ]
32
43
struct BundleBlockFiller {
You can’t perform that action at this time.
0 commit comments