Skip to content

Commit

Permalink
Update EVM chain id for Testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
NZT48 authored Apr 23, 2024
1 parent e27f311 commit a7ffaf7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ fn merge_account(source: &AccountId, dest: &AccountId) -> DispatchResult {
impl pallet_evm_accounts::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type Currency = Balances;
type ChainId = ChainId;
type ChainId = ChainId;
type AddressMapping = EvmAddressMapping<Runtime>;
type MergeAccount = MergeAccountEvm;
type WeightInfo = weights::evm_accounts_weights::WeightInfo<Runtime>;
Expand Down Expand Up @@ -725,7 +725,7 @@ impl pallet_base_fee::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type Threshold = BaseFeeThreshold;
type DefaultBaseFeePerGas = DefaultBaseFeePerGas;
type DefaultElasticity = DefaultElasticity;
type DefaultElasticity = DefaultElasticity;
}

type CurrencyAccountId<T> = <T as frame_system::Config>::AccountId;
Expand Down Expand Up @@ -798,10 +798,10 @@ impl<F: FindAuthor<u32>> FindAuthor<H160> for FindAuthorTruncated<F> {
}

parameter_types! {
pub const ChainId: u64 = 2160;
pub BlockGasLimit: U256 = U256::from(NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT.ref_time() / WEIGHT_PER_GAS);
pub PrecompilesValue: FrontierPrecompiles<Runtime> = FrontierPrecompiles::<_>::new();
pub WeightPerGas: Weight = Weight::from_parts(WEIGHT_PER_GAS, 0);
pub const ChainId: u64 = 20430;
pub BlockGasLimit: U256 = U256::from(NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT.ref_time() / WEIGHT_PER_GAS);
pub PrecompilesValue: FrontierPrecompiles<Runtime> = FrontierPrecompiles::<_>::new();
pub WeightPerGas: Weight = Weight::from_parts(WEIGHT_PER_GAS, 0);
}

impl pallet_evm::Config for Runtime {
Expand Down

0 comments on commit a7ffaf7

Please sign in to comment.