Skip to content

Commit

Permalink
fix(blockifier): remove unsupported syscall: library_call_l1_handler (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoni-Starkware authored Sep 19, 2024
1 parent b88c935 commit ac6ff34
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
6 changes: 0 additions & 6 deletions crates/blockifier/src/execution/syscalls/hint_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ use crate::execution::syscalls::{
get_execution_info,
keccak,
library_call,
library_call_l1_handler,
replace_class,
send_message_to_l1,
sha_256_process_block,
Expand Down Expand Up @@ -358,11 +357,6 @@ impl<'a> SyscallHintProcessor<'a> {
library_call,
self.context.gas_costs().library_call_gas_cost,
),
SyscallSelector::LibraryCallL1Handler => self.execute_syscall(
vm,
library_call_l1_handler,
self.context.gas_costs().library_call_gas_cost,
),
SyscallSelector::ReplaceClass => self.execute_syscall(
vm,
replace_class,
Expand Down
22 changes: 0 additions & 22 deletions crates/blockifier/src/execution/syscalls/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -491,28 +491,6 @@ pub fn library_call(
Ok(LibraryCallResponse { segment: retdata_segment })
}

// LibraryCallL1Handler syscall.

pub fn library_call_l1_handler(
request: LibraryCallRequest,
vm: &mut VirtualMachine,
syscall_handler: &mut SyscallHintProcessor<'_>,
remaining_gas: &mut u64,
) -> SyscallResult<LibraryCallResponse> {
let call_to_external = false;
let retdata_segment = execute_library_call(
syscall_handler,
vm,
request.class_hash,
call_to_external,
request.function_selector,
request.calldata,
remaining_gas,
)?;

Ok(LibraryCallResponse { segment: retdata_segment })
}

// ReplaceClass syscall.

#[derive(Debug, Eq, PartialEq)]
Expand Down

0 comments on commit ac6ff34

Please sign in to comment.