Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
enitrat committed Sep 23, 2024
1 parent d1d89d6 commit 65eafd6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bin/scarb-native-dump.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ fn main() -> anyhow::Result<()> {
}

let contract_files = fs::read_dir(&target_dir)
.with_context(|| format!("failed to read directory: {}", target_dir.display()))?
.with_context(|| format!("failed to read directory: {}", target_dir))?
.filter_map(Result::ok)
.filter(|entry| entry.file_type().map(|ft| ft.is_file()).unwrap_or(false))
.filter_map(|entry| {
Expand All @@ -71,9 +71,9 @@ fn main() -> anyhow::Result<()> {
for contract_file_path in contract_files {
let sierra_contract_class: cairo_lang_starknet_classes::contract_class::ContractClass = serde_json::from_str(
&fs::read_to_string(&contract_file_path)
.with_context(|| format!("failed to read file: {}", contract_file_path.display()))?,
.with_context(|| format!("failed to read file: {}", contract_file_path))?,
)
.with_context(|| format!("failed to deserialize compiled file: {}", contract_file_path.display()))?;
.with_context(|| format!("failed to deserialize compiled file: {}", contract_file_path))?;

let sierra_program = sierra_contract_class.extract_sierra_program()?;

Expand Down

0 comments on commit 65eafd6

Please sign in to comment.