Skip to content

Commit

Permalink
fix: clippy + fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
wischli committed Jul 24, 2024
1 parent ab2b1f4 commit 6a03f9f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions runtime/common/src/evm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,8 @@
// GNU General Public License for more details.

use cfg_primitives::AuraId;
use frame_support::{
traits::FindAuthor, weights::constants::WEIGHT_REF_TIME_PER_SECOND, Blake2_256, StorageHasher,
};
use frame_support::{traits::FindAuthor, weights::constants::WEIGHT_REF_TIME_PER_SECOND};
use pallet_ethereum::{Transaction, TransactionAction};
use parity_scale_codec::Encode;
use sp_core::{crypto::ByteArray, Hasher, H160};
use sp_runtime::{ConsensusEngineId, Permill};
use sp_std::marker::PhantomData;
Expand Down Expand Up @@ -127,9 +124,9 @@ const PASSTHROUGH_ROUTER_ACCOUNT_CODES_ACCOUNT_LOCATION_SALT: &[u8] =
b"PASSTHROUGH_ROUTER_ACCOUNT_CODES_ACCOUNT_LOCATION_SALT";

pub fn passthrough_router_location() -> H160 {
H160::from(sp_core::H256::from(sp_core::KeccakHasher::hash(
H160::from(sp_core::KeccakHasher::hash(
PASSTHROUGH_ROUTER_ACCOUNT_CODES_ACCOUNT_LOCATION_SALT,
)))
))
}

pub fn passthrough_genesis() -> (H160, fp_evm::GenesisAccount) {
Expand Down

0 comments on commit 6a03f9f

Please sign in to comment.