Skip to content

Commit

Permalink
chore: change to see which one fails
Browse files Browse the repository at this point in the history
  • Loading branch information
ICavlek committed Oct 22, 2024
1 parent 6ba7d70 commit c1e46e0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/account_katana.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ async fn deploy_multiple_accounts_on_katana() -> Result<(), Error> {
let compilation =
tokio::task::spawn_blocking(move || -> Result<(), anyhow::Error> {
let toml = path + "/Scarb.toml";
let compiler = Compiler::new(&toml)?;
let compiler = Compiler::new(&toml).unwrap();
compiler.compile()
})
.await;
Expand Down
10 changes: 6 additions & 4 deletions tests/starknet/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,18 @@ pub fn update_account(path: &str) -> Result<(), Error> {
#[allow(dead_code)]
pub fn copy_to_target() -> Result<(), Error> {
if fs::metadata("./target/account").is_err() {
fs::create_dir("./target/account/")?;
fs::create_dir("./target/account/src/")?;
fs::create_dir("./target/account/").unwrap();
fs::create_dir("./target/account/src/").unwrap();
fs::copy(
"./tests/starknet/contract/account/src/lib.cairo",
"./target/account/src/lib.cairo",
)?;
)
.unwrap();
fs::copy(
"./tests/starknet/contract/account/Scarb.toml",
"./target/account/Scarb.toml",
)?;
)
.unwrap();
}
Ok(())
}

0 comments on commit c1e46e0

Please sign in to comment.