Skip to content

Commit

Permalink
fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
zerosnacks committed Mar 27, 2024
1 parent 8edec67 commit ad561eb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/transactions/examples/trace_call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<Ethereum>::new_http(url);
let provider = HttpProvider::<Ethereum>::new_http("https://eth.merkle.io".parse()?);

let from = anvil.addresses()[0];
let to = anvil.addresses()[1];
Expand Down

0 comments on commit ad561eb

Please sign in to comment.