Skip to content

Commit

Permalink
fix: apply cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
varex83 committed Oct 28, 2024
1 parent e92dff5 commit 1d120b4
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions crates/blockifier/src/execution/native/syscall_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ use starknet_types_core::felt::Felt;
use crate::execution::call_info::{CallInfo, OrderedEvent, OrderedL2ToL1Message, Retdata};
use crate::execution::entry_point::{CallEntryPoint, EntryPointExecutionContext};
use crate::execution::native::utils::encode_str_as_felts;
use crate::execution::syscalls::hint_processor::{SyscallCounter, OUT_OF_GAS_ERROR, INVALID_INPUT_LENGTH_ERROR};
use crate::execution::syscalls::hint_processor::{
SyscallCounter,
INVALID_INPUT_LENGTH_ERROR,
OUT_OF_GAS_ERROR,
};
use crate::execution::syscalls::SyscallSelector;
use crate::state::state_api::State;

Expand Down Expand Up @@ -228,7 +232,11 @@ impl<'state> StarknetSyscallHandler for &mut NativeSyscallHandler<'state> {
}

fn keccak(&mut self, input: &[u64], remaining_gas: &mut u128) -> SyscallResult<U256> {
self.substract_syscall_gas_cost(remaining_gas, SyscallSelector::Keccak, self.context.gas_costs().keccak_gas_cost)?;
self.substract_syscall_gas_cost(
remaining_gas,
SyscallSelector::Keccak,
self.context.gas_costs().keccak_gas_cost,
)?;

const KECCAK_FULL_RATE_IN_WORDS: usize = 17;

Expand Down

0 comments on commit 1d120b4

Please sign in to comment.