Skip to content

Commit

Permalink
Apply suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: fmoletta <[email protected]>
  • Loading branch information
Oppen and fmoletta authored Oct 30, 2023
1 parent 7c86b8a commit 2d2fe8f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cairo1-run/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,7 @@ fn run(args: impl Iterator<Item = String>) -> Result<Vec<MaybeRelocatable>, Erro

let data: Vec<MaybeRelocatable> = instructions
.flat_map(|inst| inst.assemble().encode())
.map(|x| x.to_str_radix(10))
.map(|d| Felt252::from_dec_str(&d).expect("dec string by construction"))
.map(|x| bigint_to_felt(x).unwrap_or_default())
.map(MaybeRelocatable::from)
.collect();

Expand Down

0 comments on commit 2d2fe8f

Please sign in to comment.