Skip to content

Commit 54b767b

Browse files
committed
fmt
1 parent 3266d01 commit 54b767b

File tree

2 files changed

+13
-10
lines changed
  • sugondat/chain
    • node/src/chain_spec
    • pallets/length-fee-adjustment/src

2 files changed

+13
-10
lines changed

sugondat/chain/node/src/chain_spec/mod.rs

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,15 @@ use sc_chain_spec::{ChainSpecExtension, ChainSpecGroup};
33
use sc_service::ChainType;
44
use serde::{Deserialize, Serialize};
55
use sp_core::{sr25519, Pair, Public};
6-
use sp_runtime::{traits::{IdentifyAccount, Verify}, FixedPointNumber, Perquintill};
6+
use sp_runtime::{
7+
traits::{IdentifyAccount, Verify},
8+
FixedPointNumber, Perquintill,
9+
};
710
use sugondat_kusama_runtime::Runtime;
811
use sugondat_primitives::{AccountId, AuraId, Signature};
9-
use sugondat_test_runtime::{Runtime as TestRuntime,Multiplier, EXISTENTIAL_DEPOSIT as TEST_EXISTENTIAL_DEPOSIT};
12+
use sugondat_test_runtime::{
13+
Multiplier, Runtime as TestRuntime, EXISTENTIAL_DEPOSIT as TEST_EXISTENTIAL_DEPOSIT,
14+
};
1015

1116
pub type GenericChainSpec = sc_service::GenericChainSpec<(), Extensions>;
1217

@@ -124,7 +129,7 @@ pub fn development_config() -> TestRuntimeChainSpec {
124129
get_account_id_from_seed::<sr25519::Public>("Alice"),
125130
1000.into(),
126131
Multiplier::saturating_from_integer(1),
127-
Perquintill::from_percent(16)
132+
Perquintill::from_percent(16),
128133
))
129134
.build()
130135
}
@@ -168,7 +173,7 @@ pub fn kusama_staging_config() -> KusamaRuntimeChainSpec {
168173
get_account_id_from_seed::<sr25519::Public>("Alice"),
169174
KUSAMA_PARA_ID.into(),
170175
Multiplier::saturating_from_integer(1),
171-
Perquintill::from_percent(16)
176+
Perquintill::from_percent(16),
172177
))
173178
.build()
174179
}
@@ -222,7 +227,7 @@ pub fn local_testnet_config() -> TestRuntimeChainSpec {
222227
get_account_id_from_seed::<sr25519::Public>("Alice"),
223228
1000.into(),
224229
Multiplier::saturating_from_integer(1),
225-
Perquintill::from_percent(16)
230+
Perquintill::from_percent(16),
226231
))
227232
.build()
228233
}
@@ -233,7 +238,7 @@ fn test_runtime_genesis_patch(
233238
root: AccountId,
234239
id: ParaId,
235240
next_len_mult: Multiplier,
236-
target_block_size: Perquintill
241+
target_block_size: Perquintill,
237242
) -> serde_json::Value {
238243
serde_json::json! ({
239244
"balances": {
@@ -275,7 +280,7 @@ fn kusama_runtime_genesis_patch(
275280
root: AccountId,
276281
id: ParaId,
277282
next_len_mult: Multiplier,
278-
target_block_size: Perquintill
283+
target_block_size: Perquintill,
279284
) -> serde_json::Value {
280285
serde_json::json! ({
281286
"balances": {

sugondat/chain/pallets/length-fee-adjustment/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,9 @@ pub mod pallet {
154154
#[pallet::genesis_build]
155155
impl<T: Config> BuildGenesisConfig for GenesisConfig<T> {
156156
fn build(&self) {
157-
158157
NextLengthMultiplier::<T>::put(self.next_length_multiplier);
159-
158+
160159
TargetBlockSize::<T>::put(self.target_block_size)
161-
162160
}
163161
}
164162

0 commit comments

Comments
 (0)