Skip to content

Commit

Permalink
newly named os default
Browse files Browse the repository at this point in the history
  • Loading branch information
drspacemn committed Sep 27, 2023
1 parent c034e9a commit 8a166aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@ jobs:
with:
cache-on-failure: true
- run: cargo install cargo-udeps --locked
- run: cargo +nightly udeps --all-targets
- run: cargo +nightly udeps --all-targets

8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ impl SnOsRunner {
let mut sn_hint_processor = hints::sn_hint_processor();

// Load the Starknet OS
let starknet_os = fs::read_to_string(self.os_path.as_path())
.map_err(|e| SnOsError::CatchAll(format!("{e}")))?;
let starknet_os =
fs::read(self.os_path.as_path()).map_err(|e| SnOsError::CatchAll(format!("{e}")))?;

let (runner, vm) = cairo_run(
starknet_os.as_bytes(),
&starknet_os,
&CairoRunConfig {
layout: self.layout.as_str(),
relocate_mem: true,
Expand All @@ -58,7 +58,7 @@ impl Default for SnOsRunner {
fn default() -> Self {
Self {
layout: "starknet_with_keccak".to_string(),
os_path: PathBuf::from("build/os_compiled.json"),
os_path: PathBuf::from("build/os_latest.json"),
}
}
}

0 comments on commit 8a166aa

Please sign in to comment.