diff --git a/crates/starknet-os/src/execution/secp_handler.rs b/crates/starknet-os/src/execution/secp_handler.rs index d2da6ed1a..32d7d5a6a 100644 --- a/crates/starknet-os/src/execution/secp_handler.rs +++ b/crates/starknet-os/src/execution/secp_handler.rs @@ -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)? }) } diff --git a/crates/starknet-os/src/execution/syscall_handler_utils.rs b/crates/starknet-os/src/execution/syscall_handler_utils.rs index cbedd6c32..da5e2c5ab 100644 --- a/crates/starknet-os/src/execution/syscall_handler_utils.rs +++ b/crates/starknet-os/src/execution/syscall_handler_utils.rs @@ -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}; @@ -214,9 +213,9 @@ impl From for SyscallExecutionError { impl From 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), } }