Skip to content

Commit

Permalink
chore: fmt + clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
petscheit committed Jan 31, 2025
1 parent 87e0a64 commit a16d00e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion crates/dry_hint_processor/src/syscall_handler/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ use hints::vars;
use serde::{Deserialize, Serialize};
use starknet::CallContractHandler as StarknetCallContractHandler;
use syscall_handler::{
felt_from_ptr, keccak::KeccakHandler, debug::DebugHandler, run_handler, traits, SyscallExecutionError, SyscallResult, SyscallSelector, WriteResponseResult,
debug::DebugHandler, felt_from_ptr, keccak::KeccakHandler, run_handler, traits, SyscallExecutionError, SyscallResult, SyscallSelector,
WriteResponseResult,
};
use tokio::{sync::RwLock, task};
use types::{
Expand Down
3 changes: 2 additions & 1 deletion crates/sound_hint_processor/src/syscall_handler/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ use cairo_vm::{
use hints::vars;
use serde::{Deserialize, Serialize};
use syscall_handler::{
felt_from_ptr, keccak::KeccakHandler, debug::DebugHandler, run_handler, traits, SyscallExecutionError, SyscallResult, SyscallSelector, WriteResponseResult,
debug::DebugHandler, felt_from_ptr, keccak::KeccakHandler, run_handler, traits, SyscallExecutionError, SyscallResult, SyscallSelector,
WriteResponseResult,
};
use tokio::{sync::RwLock, task};
use types::{
Expand Down
3 changes: 2 additions & 1 deletion crates/syscall_handler/src/debug.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
use cairo_vm::{types::relocatable::Relocatable, vm::vm_core::VirtualMachine, Felt252};
use serde::{Deserialize, Serialize};
use strum_macros::FromRepr;
use crate::{traits, SyscallExecutionError, SyscallResult, WriteResponseResult};
use types::cairo::{
new_syscalls::{CallContractRequest, CallContractResponse},
traits::CairoType,
};

use crate::{traits, SyscallExecutionError, SyscallResult, WriteResponseResult};

#[derive(FromRepr)]
pub enum CallHandlerId {
Print = 0,
Expand Down
2 changes: 1 addition & 1 deletion crates/syscall_handler/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
#![warn(unused_crate_dependencies)]
#![forbid(unsafe_code)]

pub mod debug;
pub mod keccak;
pub mod traits;
pub mod debug;

use cairo_vm::{
types::{
Expand Down
2 changes: 1 addition & 1 deletion hdp_cairo/src/debug/printer.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use starknet::SyscallResultTrait;
use core::fmt::Display;


const DEBUG_CONTRACT_ADDRESS: felt252 = 0x6465627567; // debug
const DEBUG_CONTRACT_ADDRESS: felt252 = 'debug';
const PRINT: felt252 = 0;
const PRINT_ARRAY: felt252 = 1;

Expand Down
2 changes: 0 additions & 2 deletions tests/src/utils/debug.cairo
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#[starknet::contract]
mod test_debug_print {
use hdp_cairo::evm::account::AccountTrait;
use hdp_cairo::{HDP, evm::account::{AccountKey, AccountImpl}};
use hdp_cairo::debug::{print, print_array};
use core::fmt::{Display, Formatter, Error};

Expand Down

0 comments on commit a16d00e

Please sign in to comment.