Skip to content

Commit

Permalink
chore: fix up the README example (#194)
Browse files Browse the repository at this point in the history
Due to the this commit:

commit bc96471
Author: DaniPopes <[email protected]>
Date:   Sat Jun 29 00:20:26 2024 +0200

    chore: remove most impl AsRef<str,Path> (#157)

The interface for `hardhat()` is updated to `&Path`.

---------

Co-authored-by: DaniPopes <[email protected]>
  • Loading branch information
ziminq and DaniPopes authored Sep 4, 2024
1 parent 20961b3 commit f64df56
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,11 @@ Example usage:

```rust,ignore
use foundry_compilers::{Project, ProjectPathsConfig};
use std::path::Path;
// configure the project with all its paths, solc, cache etc.
let project = Project::builder()
.paths(ProjectPathsConfig::hardhat(env!("CARGO_MANIFEST_DIR")).unwrap())
.paths(ProjectPathsConfig::hardhat(Path::new(env!("CARGO_MANIFEST_DIR"))).unwrap())
.build(Default::default())
.unwrap();
let output = project.compile().unwrap();
Expand Down

0 comments on commit f64df56

Please sign in to comment.