diff --git a/examples/transactions/examples/trace_call.rs b/examples/transactions/examples/trace_call.rs index 9f9a94e9..e257e3c7 100644 --- a/examples/transactions/examples/trace_call.rs +++ b/examples/transactions/examples/trace_call.rs @@ -18,8 +18,7 @@ async fn main() -> Result<()> { // Ensure `anvil` is available in $PATH let anvil = Anvil::new().fork("https://eth.merkle.io").try_spawn()?; - let url = anvil.endpoint().parse().unwrap(); - let provider = HttpProvider::::new_http(url); + let provider = HttpProvider::::new_http("https://eth.merkle.io".parse()?); let from = anvil.addresses()[0]; let to = anvil.addresses()[1];