From 15f51257cd78e49a5995735bce6bea9a5f507793 Mon Sep 17 00:00:00 2001 From: Cody Born Date: Fri, 20 Dec 2024 12:58:59 -0800 Subject: [PATCH] Change default mevblocker value --- src/main.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index bf81465..8535afe 100644 --- a/src/main.rs +++ b/src/main.rs @@ -34,8 +34,6 @@ pub mod executors; pub mod strategies; pub mod shared; -const MEV_BLOCKER: &str = "https://rpc.mevblocker.io/noreverts"; - /// CLI Options. #[derive(Parser, Debug)] #[command(group( @@ -114,14 +112,14 @@ async fn main() -> Result<()> { // Set up ethers provider. let chain_id = args.chain_id; let provider = - Provider::::try_from(args.http).expect("could not instantiate HTTP Provider"); + Provider::::try_from(args.http.as_str()).expect("could not instantiate HTTP Provider"); let mevblocker_provider; if let Some(mevblocker_http) = args.mevblocker_http { mevblocker_provider = Provider::::try_from(mevblocker_http) .expect("could not instantiate MevBlocker Provider"); } else { - mevblocker_provider = Provider::::try_from(MEV_BLOCKER) + mevblocker_provider = Provider::::try_from(args.http.as_str()) .expect("could not instantiate MevBlocker Provider"); }