Skip to content

Commit

Permalink
rebase fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
odesenfans committed Aug 29, 2024
1 parent 7fc9f6c commit 4f8e0b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion crates/starknet-os/src/execution/secp_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,6 @@ where
multiplier: request.multiplier,
};
let res = secp_handler.processor.secp_mul(request)?;
let segment = secp_handler.segment.get().unwrap();

Ok(SecpOpRespone { ec_point_id: (*segment + res.ec_point_id * 6)? })
}
Expand Down
7 changes: 3 additions & 4 deletions crates/starknet-os/src/execution/syscall_handler_utils.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use std::num::TryFromIntError;

use blockifier::execution::execution_utils::stark_felt_to_felt;
use blockifier::execution::syscalls::hint_processor::SyscallExecutionError as BlockifierSyscallError;
use cairo_vm::types::errors::math_errors::MathError;
use cairo_vm::types::relocatable::{MaybeRelocatable, Relocatable};
Expand Down Expand Up @@ -214,9 +213,9 @@ impl From<TryFromIntError> for SyscallExecutionError {
impl From<BlockifierSyscallError> for SyscallExecutionError {
fn from(error: BlockifierSyscallError) -> Self {
match error {
BlockifierSyscallError::SyscallError { error_data } => Self::SyscallError {
error_data: error_data.into_iter().map(stark_felt_to_felt).map(|e| e.to_biguint().into()).collect(),
},
BlockifierSyscallError::SyscallError { error_data } => {
Self::SyscallError { error_data: error_data.into_iter().map(|e| e.to_biguint().into()).collect() }
}
_ => Self::BlockifierSyscallError(error),
}
}
Expand Down

0 comments on commit 4f8e0b3

Please sign in to comment.