Skip to content

Commit 05b20a1

Browse files
authored
Update fs.rs
1 parent 4ef6b58 commit 05b20a1

File tree

1 file changed

+1
-1
lines changed
  • crates/cheatcodes/src

1 file changed

+1
-1
lines changed

crates/cheatcodes/src/fs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ fn get_artifact_code(state: &Cheatcodes, path: &str, deployed: bool) -> Result<B
514514
.ok_or_else(|| fmt_err!("no bytecode for contract; is it abstract or unlinked?"));
515515
} else {
516516
let path_in_artifacts =
517-
match (file.map(|f| f.to_string_lossy().to_string()), contract_name) {
517+
match (file.map(|f| f.to_string_lossy().into_owned()), contract_name) {
518518
(Some(file), Some(contract_name)) => {
519519
PathBuf::from(format!("{file}/{contract_name}.json"))
520520
}

0 commit comments

Comments
 (0)