Skip to content

Commit

Permalink
chore: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
enitrat committed Oct 17, 2023
1 parent 3f1bc34 commit db3c759
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
5 changes: 2 additions & 3 deletions crates/contracts/src/kakarot_core/kakarot.cairo
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use starknet::{ContractAddress, EthAddress, ClassHash};

const INVOKE_ETH_CALL_FORBIDDEN: felt252 = 'KKT: Cannot invoke eth_call';
const INVOKE_ETH_CALL_ERROR: felt252 = 'KKT: Cannot invoke eth_call';


#[derive(Copy, Drop, Serde, starknet::Store)]
Expand All @@ -26,13 +25,13 @@ mod KakarotCore {
use core::pedersen::{HashState, PedersenTrait};
use core::starknet::SyscallResultTrait;
use core::zeroable::Zeroable;
use evm::context::Status;
use evm::errors::EVMError;
use evm::execution::execute;
use evm::context::Status;
use super::ContractAccountStorage;
use starknet::{
EthAddress, ContractAddress, ClassHash, get_tx_info, get_contract_address, deploy_syscall
};
use super::ContractAccountStorage;
use super::INVOKE_ETH_CALL_FORBIDDEN;
use utils::constants::{CONTRACT_ADDRESS_PREFIX, MAX_ADDRESS};
use utils::traits::U256TryIntoContractAddress;
Expand Down
3 changes: 2 additions & 1 deletion crates/evm/src/execution.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ use starknet::{EthAddress, ContractAddress};
///
/// # Arguments
///
/// * `evm_contract_address` - The EVM address of the called contract. Set to 0 if there is no notion of deployed contract in the bytecode.
/// * `evm_contract_address` - The EVM address of the called contract. Set to 0
/// if there is no notion of deployed contract in the bytecode.
/// * `bytecode` - The bytecode to run.
/// * `calldata` - The calldata of the execution.
/// * `value` - The value of the execution.
Expand Down
2 changes: 1 addition & 1 deletion crates/evm/src/tests/test_execution_context.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ fn test_execution_context_new() {

// When
let mut execution_context = ExecutionContextTrait::new(
context_id, evm_address, call_ctx, parent_ctx, return_data.span()
context_id, evm_address, call_ctx, parent_ctx, return_data.span()
);

// Then
Expand Down

0 comments on commit db3c759

Please sign in to comment.