forked from Snowfork/snowbridge
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR comments for upstream (Snowfork#1127)
* cleanup of mocks * Adds Ethereum constant comments * adds more comments * clippy * revert mock runtime changes --------- Co-authored-by: claravanstaden <Cats 4 life!>
- Loading branch information
1 parent
252df12
commit ec4df8e
Showing
2 changed files
with
22 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,11 @@ | |
// SPDX-FileCopyrightText: 2023 Snowfork <[email protected]> | ||
use crate as ethereum_beacon_client; | ||
use crate::config; | ||
use frame_support::parameter_types; | ||
use frame_support::{derive_impl, parameter_types}; | ||
use hex_literal::hex; | ||
use pallet_timestamp; | ||
use primitives::{CompactExecutionHeader, Fork, ForkVersions}; | ||
use snowbridge_core::inbound::{Log, Proof}; | ||
use sp_core::H256; | ||
use sp_runtime::traits::{BlakeTwo256, IdentityLookup}; | ||
use std::{fs::File, path::PathBuf}; | ||
type Block = frame_system::mocking::MockBlock<Test>; | ||
use sp_runtime::BuildStorage; | ||
|
@@ -97,35 +95,8 @@ frame_support::construct_runtime!( | |
} | ||
); | ||
|
||
parameter_types! { | ||
pub const BlockHashCount: u64 = 250; | ||
pub const SS58Prefix: u8 = 42; | ||
} | ||
|
||
#[derive_impl(frame_system::config_preludes::TestDefaultConfig as frame_system::DefaultConfig)] | ||
impl frame_system::Config for Test { | ||
type BaseCallFilter = frame_support::traits::Everything; | ||
type OnSetCode = (); | ||
type BlockWeights = (); | ||
type BlockLength = (); | ||
type DbWeight = (); | ||
type RuntimeOrigin = RuntimeOrigin; | ||
type RuntimeCall = RuntimeCall; | ||
type RuntimeTask = RuntimeTask; | ||
type Hash = H256; | ||
type Hashing = BlakeTwo256; | ||
type AccountId = u64; | ||
type Lookup = IdentityLookup<Self::AccountId>; | ||
type RuntimeEvent = RuntimeEvent; | ||
type BlockHashCount = BlockHashCount; | ||
type Version = (); | ||
type PalletInfo = PalletInfo; | ||
type AccountData = (); | ||
type OnNewAccount = (); | ||
type OnKilledAccount = (); | ||
type SystemWeightInfo = (); | ||
type SS58Prefix = SS58Prefix; | ||
type MaxConsumers = frame_support::traits::ConstU32<16>; | ||
type Nonce = u64; | ||
type Block = Block; | ||
} | ||
|
||
|