Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use existing GET_SEQUENCER_ADDRESS hint #142

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/hints/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ static HINTS: [(&str, HintImpl); 190] = [
(syscalls::GET_BLOCK_TIMESTAMP, syscalls::get_block_timestamp),
(syscalls::GET_CALLER_ADDRESS, syscalls::get_caller_address),
(syscalls::GET_CONTRACT_ADDRESS, syscalls::get_contract_address),
(syscalls::GET_SEQUENCER_ADDRESS, syscalls::get_sequencer_address),
(syscalls::GET_TX_INFO, syscalls::get_tx_info),
(syscalls::GET_TX_SIGNATURE, syscalls::get_tx_signature),
(syscalls::LIBRARY, syscalls::library_call),
Expand Down Expand Up @@ -220,7 +221,6 @@ static HINTS: [(&str, HintImpl); 190] = [
(unimplemented::WRITE_ZKG_COMMITMENT_ADDRESS, hint_stub),
(unimplemented::WRITE_NIBBLES_TO_MEM, hint_stub),
(unimplemented::WRITE_USE_ZKG_DA_TO_MEM, hint_stub),
(unimplemented::GET_SEQUENCER_ADDRESS, hint_stub),
(unimplemented::PACK_X_PRIME, hint_stub),
(unimplemented::WRITE_CASE_NOT_LEFT_TO_AP, hint_stub),
(unimplemented::EXIT_SYSCALL_GET_BLOCK_NUMBER, hint_stub),
Expand Down
4 changes: 0 additions & 4 deletions src/hints/unimplemented.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,6 @@ pub const WRITE_USE_ZKG_DA_TO_MEM: &str = indoc! {r#"
memory[fp + 15] = to_felt_or_relocatable(syscall_handler.block_info.use_kzg_da)"#
};

pub const GET_SEQUENCER_ADDRESS: &str = indoc! {r#"
syscall_handler.get_sequencer_address(segments=segments, syscall_ptr=ids.syscall_ptr)"#
};

pub const PACK_X_PRIME: &str = indoc! {r#"
from starkware.cairo.common.cairo_secp.secp256r1_utils import SECP256R1_P
from starkware.cairo.common.cairo_secp.secp_utils import pack
Expand Down
Loading