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 a0b9bda commit a21fefe
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 @@ -55,7 +55,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 @@ -73,9 +73,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 a21fefe

Please sign in to comment.