We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3c4d4c commit 69fa90cCopy full SHA for 69fa90c
searcher-api-types/src/lib.rs
@@ -1,4 +1,4 @@
1
-use alloy_primitives::{BlockNumber, Bytes};
+use alloy_primitives::{BlockNumber, Bytes, TxHash};
2
use alloy_rlp::encode;
3
use serde::{Deserialize, Serialize};
4
@@ -63,4 +63,12 @@ impl SendBundleRequest {
63
.collect(),
64
}
65
66
+
67
+ pub fn reverting_tx_hashes(&self) -> Vec<TxHash> {
68
+ match self {
69
+ SendBundleRequest::Flashbots(_) => vec![],
70
+ SendBundleRequest::Beaver(bundle) => bundle.reverting_transaction_hashes.clone(),
71
+ SendBundleRequest::Titan(bundle) => bundle.reverting_transaction_hashes.clone(),
72
+ }
73
74
0 commit comments