Skip to content
Open
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
6 changes: 3 additions & 3 deletions crates/cli/src/utils/cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ use std::{
};
use yansi::Paint;

/// Given a `Project`'s output, removes the matching ABI, Bytecode and
/// Runtime Bytecode of the given contract.
/// Given a `Project`'s output, finds the contract by path and name and returns its
/// ABI, creation bytecode, and `ArtifactId`.
#[track_caller]
pub fn remove_contract(
pub fn find_contract_artifacts(
output: ProjectCompileOutput,
path: &Path,
name: &str,
Expand Down
2 changes: 1 addition & 1 deletion crates/cli/src/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ ignore them in the `.gitignore` file."
.map(|stdout| stdout.lines().any(|line| line.starts_with('-')))
}

/// Returns true if the given path has no submodules by checking `git submodule status`
/// Returns true if the given path has submodules by checking `git submodule status`
pub fn has_submodules<I, S>(self, paths: I) -> Result<bool>
where
I: IntoIterator<Item = S>,
Expand Down
4 changes: 2 additions & 2 deletions crates/forge/src/cmd/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use eyre::{Context, Result};
use forge_verify::{RetryArgs, VerifierArgs, VerifyArgs};
use foundry_cli::{
opts::{BuildOpts, EthereumOpts, EtherscanOpts, TransactionOpts},
utils::{self, LoadConfig, read_constructor_args_file, remove_contract},
utils::{self, LoadConfig, find_contract_artifacts, read_constructor_args_file},
};
use foundry_common::{
compile::{self},
Expand Down Expand Up @@ -123,7 +123,7 @@ impl CreateArgs {

let output = compile::compile_target(&target_path, &project, shell::is_json())?;

let (abi, bin, id) = remove_contract(output, &target_path, &self.contract.name)?;
let (abi, bin, id) = find_contract_artifacts(output, &target_path, &self.contract.name)?;

let bin = match bin.object {
BytecodeObject::Bytecode(_) => bin.object,
Expand Down
Loading