Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bump ethers with latest remappings #263

Merged
merged 2 commits into from
Dec 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
155 changes: 11 additions & 144 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cast/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ where
/// Makes a read-only call to the specified address
///
/// ```no_run
///
///
/// use cast::Cast;
/// use ethers_core::types::Address;
/// use ethers_providers::{Provider, Http};
Expand Down
5 changes: 2 additions & 3 deletions cli/src/cmd/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub struct BuildArgs {
pub root: Option<PathBuf>,

#[structopt(
help = "the directory relative to the root under which the smart contrats are",
help = "the directory relative to the root under which the smart contracts are",
long,
short
)]
Expand Down Expand Up @@ -164,8 +164,7 @@ impl BuildArgs {
let lib_paths = self.libs(&root);

// get all the remappings corresponding to the lib paths
let mut remappings: Vec<_> =
lib_paths.iter().flat_map(|path| Remapping::find_many(&path).unwrap()).collect();
let mut remappings: Vec<_> = lib_paths.iter().flat_map(Remapping::find_many).collect();

// extend them with the once manually provided in the opts
remappings.extend_from_slice(&self.remappings);
Expand Down
3 changes: 1 addition & 2 deletions cli/src/forge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ fn main() -> eyre::Result<()> {
let root = std::fs::canonicalize(root)?;

let lib_paths = if lib_paths.is_empty() { vec![root.join("lib")] } else { lib_paths };
let remappings: Vec<_> =
lib_paths.iter().flat_map(|path| Remapping::find_many(&path).unwrap()).collect();
let remappings: Vec<_> = lib_paths.iter().flat_map(Remapping::find_many).collect();
remappings.iter().for_each(|x| println!("{}", x));
}
Subcommands::Init { root, template } => {
Expand Down