Skip to content

Commit

Permalink
fix: change the order in match expression
Browse files Browse the repository at this point in the history
  • Loading branch information
varex83 committed Sep 9, 2024
1 parent 05815c5 commit b73d315
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/blockifier/src/execution/native/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,16 @@ pub fn run_native_executor(
);

let run_result = match execution_result {
Err(runner_err) => {
Err(EntryPointExecutionError::NativeUnexpectedError { source: runner_err })
}
Ok(res) if res.failure_flag => Err(EntryPointExecutionError::NativeExecutionError {
info: if !res.return_values.is_empty() {
decode_felts_as_str(&res.return_values)
} else {
String::from("Unknown error")
},
}),
Err(runner_err) => {
Err(EntryPointExecutionError::NativeUnexpectedError { source: runner_err })
}
Ok(res) => Ok(res),
}?;

Expand Down

0 comments on commit b73d315

Please sign in to comment.