Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
enitrat committed Sep 9, 2024
1 parent 87f7c33 commit 46a08e7
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 13 deletions.
8 changes: 4 additions & 4 deletions crates/contracts/tests/test_eoa.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ use contracts::test_utils::{
use core::array::SpanTrait;
use core::box::BoxTrait;
use core::starknet::account::{Call};
use core::starknet::{
ContractAddress, ClassHash, VALIDATED, get_contract_address,
contract_address_const, EthAddress, get_tx_info, Event
};
use core::starknet::secp256_trait::Signature;
use core::starknet::syscalls::deploy_syscall;
use core::starknet::{
ContractAddress, ClassHash, VALIDATED, get_contract_address, contract_address_const, EthAddress,
get_tx_info, Event
};

use evm::model::{Address, AddressTrait};
use evm::test_utils::{
Expand Down
6 changes: 2 additions & 4 deletions crates/contracts/tests/test_kakarot_core.cairo
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
use contracts::UninitializedAccount;
use contracts::account_contract::{IAccountDispatcher, IAccountDispatcherTrait};
use contracts::kakarot_core::interface::{
IExtendedKakarotCoreDispatcher, IExtendedKakarotCoreDispatcherTrait
};
use contracts::kakarot_core::{
KakarotCore, KakarotCore::KakarotCoreInternal
};
use contracts::kakarot_core::{KakarotCore, KakarotCore::KakarotCoreInternal};
use contracts::test_contracts::test_upgradeable::{
MockContractUpgradeableV1, IMockContractUpgradeableDispatcher,
IMockContractUpgradeableDispatcherTrait
};
use contracts::test_data::{deploy_counter_calldata, counter_evm_bytecode};
use contracts::UninitializedAccount;
use contracts::{test_utils as contract_utils,};
use core::fmt::{Debug, Formatter, Error};
use core::num::traits::Zero;
Expand Down
5 changes: 2 additions & 3 deletions crates/contracts/tests/test_utils.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@ use contracts::{UninitializedAccount};
use core::fmt::Debug;
use core::result::ResultTrait;
use core::starknet::ClassHash;
use core::starknet::syscalls::deploy_syscall;
use core::starknet::{
testing, contract_address_const, EthAddress, ContractAddress,
get_contract_address
testing, contract_address_const, EthAddress, ContractAddress, get_contract_address
};
use core::starknet::syscalls::deploy_syscall;
use evm::backend::starknet_backend;
use evm::model::{Address};

Expand Down
2 changes: 1 addition & 1 deletion crates/utils/src/crypto/modexp/arith.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -598,10 +598,10 @@ mod tests {
mod_inv, monsq, monpro, compute_r_mod_n, in_place_shl, in_place_shr, big_wrapping_pow,
big_wrapping_mul, big_sq, borrowing_sub, shifted_carrying_mul
};
use utils::crypto::modexp::mpnat::{mp_nat_to_u128};
use utils::crypto::modexp::mpnat::{
MPNat, MPNatTrait, WORD_MAX, DOUBLE_WORD_MAX, BASE, Word, WORD_BYTES
};
use utils::crypto::modexp::mpnat::{mp_nat_to_u128};
use utils::helpers::{Felt252VecTrait, ToBytes};
use utils::math::{WrappingBitshift, WrappingExponentiation};

Expand Down
2 changes: 1 addition & 1 deletion crates/utils/src/crypto/modexp/mpnat.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -696,10 +696,10 @@ pub fn mp_nat_to_u128(ref x: MPNat) -> u128 {
mod tests {
use alexandria_data_structures::vec::Felt252VecImpl;
use alexandria_data_structures::vec::VecTrait;
use super::mp_nat_to_u128;
use utils::crypto::modexp::mpnat::MPNatTrait;
use utils::helpers::ToBytes;
use utils::math::{Bitshift, WrappingBitshift};
use super::mp_nat_to_u128;

// the tests are taken from
// [aurora-engine](https://github.com/aurora-is-near/aurora-engine/blob/1213f2c7c035aa523601fced8f75bef61b4728ab/engine-modexp/src/mpnat.rs#L825)
Expand Down

0 comments on commit 46a08e7

Please sign in to comment.