Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
runcomet committed Dec 2, 2024
1 parent d53d795 commit 9128ab9
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ fn asset_hub_rococo_genesis(
) -> serde_json::Value {
build_struct_json_patch!(RuntimeGenesisConfig {
balances: BalancesConfig {
balances: endowed_accounts.iter().cloned().map(|k| (k, endowment)).collect()
balances: endowed_accounts.iter().cloned().map(|k| (k, endowment)).collect(),
},
parachain_info: ParachainInfoConfig { parachain_id: id },
collator_selection: CollatorSelectionConfig {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ fn asset_hub_westend_genesis(
) -> serde_json::Value {
build_struct_json_patch!(RuntimeGenesisConfig {
balances: BalancesConfig {
balances: endowed_accounts.iter().cloned().map(|k| (k, endowment)).collect()
balances: endowed_accounts.iter().cloned().map(|k| (k, endowment)).collect(),
},
parachain_info: ParachainInfoConfig { parachain_id: id },
collator_selection: CollatorSelectionConfig {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ fn bridge_hub_rococo_genesis(
.iter()
.cloned()
.map(|k| (k, 1u128 << 60))
.collect::<Vec<_>>()
.collect::<Vec<_>>(),
},
parachain_info: ParachainInfoConfig { parachain_id: id },
collator_selection: CollatorSelectionConfig {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ fn bridge_hub_westend_genesis(
.iter()
.cloned()
.map(|k| (k, 1u128 << 60))
.collect::<Vec<_>>()
.collect::<Vec<_>>(),
},
parachain_info: ParachainInfoConfig { parachain_id: id },
collator_selection: CollatorSelectionConfig {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ fn collectives_westend_genesis(
.iter()
.cloned()
.map(|k| (k, COLLECTIVES_WESTEND_ED * 4096))
.collect::<Vec<_>>()
.collect::<Vec<_>>(),
},
parachain_info: ParachainInfoConfig { parachain_id: id },
collator_selection: CollatorSelectionConfig {
Expand Down
4 changes: 2 additions & 2 deletions polkadot/runtime/rococo/src/genesis_config_presets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ fn rococo_testnet_genesis(

build_struct_json_patch!(RuntimeGenesisConfig {
balances: BalancesConfig {
balances: endowed_accounts.iter().map(|k| (k.clone(), ENDOWMENT)).collect::<Vec<_>>()
balances: endowed_accounts.iter().map(|k| (k.clone(), ENDOWMENT)).collect::<Vec<_>>(),
},
session: SessionConfig {
keys: initial_authorities
Expand Down Expand Up @@ -427,7 +427,7 @@ fn rococo_staging_testnet_config_genesis() -> serde_json::Value {
.iter()
.map(|k: &AccountId| (k.clone(), ENDOWMENT))
.chain(initial_authorities.iter().map(|x| (x.0.clone(), STASH)))
.collect::<Vec<_>>()
.collect::<Vec<_>>(),
},
session: SessionConfig {
keys: initial_authorities
Expand Down
4 changes: 2 additions & 2 deletions polkadot/runtime/westend/src/genesis_config_presets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ fn westend_testnet_genesis(

build_struct_json_patch!(RuntimeGenesisConfig {
balances: BalancesConfig {
balances: endowed_accounts.iter().map(|k| (k.clone(), ENDOWMENT)).collect::<Vec<_>>()
balances: endowed_accounts.iter().map(|k| (k.clone(), ENDOWMENT)).collect::<Vec<_>>(),
},
session: SessionConfig {
keys: initial_authorities
Expand Down Expand Up @@ -344,7 +344,7 @@ fn westend_staging_testnet_config_genesis() -> serde_json::Value {
.iter()
.map(|k: &AccountId| (k.clone(), ENDOWMENT))
.chain(initial_authorities.iter().map(|x| (x.0.clone(), STASH)))
.collect::<Vec<_>>()
.collect::<Vec<_>>(),
},
session: SessionConfig {
keys: initial_authorities
Expand Down
8 changes: 2 additions & 6 deletions prdoc/pr_6267.prdoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ doc:
manner.

crates:
- name: substrate-test-runtime
bump: minor
- name: pallet-vesting
bump: minor
- name: pallet-utility
Expand All @@ -29,10 +27,10 @@ crates:
bump: minor
- name: pallet-transaction-payment
bump: minor
- name: pallet-asset-conversion-tx-payment
bump: minor
- name: pallet-asset-tx-payment
bump: minor
- name: pallet-asset-conversion-tx-payment
bump: minor
- name: pallet-tips
bump: minor
- name: pallet-state-trie-migration
Expand Down Expand Up @@ -101,8 +99,6 @@ crates:
bump: minor
- name: pallet-alliance
bump: minor
- name: node-testing
bump: minor
- name: xcm-simulator-fuzzer
bump: minor
- name: xcm-simulator-example
Expand Down
2 changes: 1 addition & 1 deletion substrate/test-utils/runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ sp-session = { workspace = true }
sp-api = { workspace = true }
sp-runtime = { features = ["serde"], workspace = true }
pallet-babe = { workspace = true }
pallet-balances = { workspace = true, features = ["runtime-benchmarks"] }
pallet-balances = { workspace = true }
frame-executive = { workspace = true }
frame-metadata-hash-extension = { workspace = true }
frame-system = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion substrate/test-utils/runtime/src/genesismap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ impl GenesisStorageBuilder {
authorities: authorities_sr25519.clone(),
..Default::default()
},
balances: pallet_balances::GenesisConfig { balances: self.balances.clone(), ..Default::default() },
balances: pallet_balances::GenesisConfig { balances: self.balances.clone() },
}
}

Expand Down

0 comments on commit 9128ab9

Please sign in to comment.