Skip to content

Commit 9032f95

Browse files
committed
cargo fmt
1 parent 2d340e7 commit 9032f95

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

node/src/chain_spec.rs

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,16 @@ pub fn finney_mainnet_config() -> Result<ChainSpec, String> {
9393
Vec<(sp_runtime::AccountId32, (u64, u16))>,
9494
)> = Vec::new();
9595
for (coldkey_str, hotkeys) in old_state.stakes.iter() {
96-
let coldkey = <sr25519::Public as Ss58Codec>::from_ss58check(coldkey_str).map_err(|e| e.to_string())?;
96+
let coldkey = <sr25519::Public as Ss58Codec>::from_ss58check(coldkey_str)
97+
.map_err(|e| e.to_string())?;
9798
let coldkey_account = sp_runtime::AccountId32::from(coldkey);
9899

99100
let mut processed_hotkeys: Vec<(sp_runtime::AccountId32, (u64, u16))> = Vec::new();
100101

101102
for (hotkey_str, amount_uid) in hotkeys.iter() {
102103
let (amount, uid) = amount_uid;
103-
let hotkey = <sr25519::Public as Ss58Codec>::from_ss58check(hotkey_str).map_err(|e| e.to_string())?;
104+
let hotkey = <sr25519::Public as Ss58Codec>::from_ss58check(hotkey_str)
105+
.map_err(|e| e.to_string())?;
104106
let hotkey_account = sp_runtime::AccountId32::from(hotkey);
105107

106108
processed_hotkeys.push((hotkey_account, (*amount, *uid)));
@@ -112,7 +114,8 @@ pub fn finney_mainnet_config() -> Result<ChainSpec, String> {
112114
let mut balances_issuance: u64 = 0;
113115
let mut processed_balances: Vec<(sp_runtime::AccountId32, u64)> = Vec::new();
114116
for (key_str, amount) in old_state.balances.iter() {
115-
let key = <sr25519::Public as Ss58Codec>::from_ss58check(key_str).map_err(|e| e.to_string())?;
117+
let key =
118+
<sr25519::Public as Ss58Codec>::from_ss58check(key_str).map_err(|e| e.to_string())?;
116119
let key_account = sp_runtime::AccountId32::from(key);
117120

118121
processed_balances.push((key_account, *amount));
@@ -269,14 +272,16 @@ pub fn finney_testnet_config() -> Result<ChainSpec, String> {
269272
Vec<(sp_runtime::AccountId32, (u64, u16))>,
270273
)> = Vec::new();
271274
for (coldkey_str, hotkeys) in old_state.stakes.iter() {
272-
let coldkey = <sr25519::Public as Ss58Codec>::from_ss58check(coldkey_str).map_err(|e| e.to_string())?;
275+
let coldkey = <sr25519::Public as Ss58Codec>::from_ss58check(coldkey_str)
276+
.map_err(|e| e.to_string())?;
273277
let coldkey_account = sp_runtime::AccountId32::from(coldkey);
274278

275279
let mut processed_hotkeys: Vec<(sp_runtime::AccountId32, (u64, u16))> = Vec::new();
276280

277281
for (hotkey_str, amount_uid) in hotkeys.iter() {
278282
let (amount, uid) = amount_uid;
279-
let hotkey = <sr25519::Public as Ss58Codec>::from_ss58check(hotkey_str).map_err(|e| e.to_string())?;
283+
let hotkey = <sr25519::Public as Ss58Codec>::from_ss58check(hotkey_str)
284+
.map_err(|e| e.to_string())?;
280285
let hotkey_account = sp_runtime::AccountId32::from(hotkey);
281286

282287
processed_hotkeys.push((hotkey_account, (*amount, *uid)));
@@ -288,7 +293,8 @@ pub fn finney_testnet_config() -> Result<ChainSpec, String> {
288293
let mut balances_issuance: u64 = 0;
289294
let mut processed_balances: Vec<(sp_runtime::AccountId32, u64)> = Vec::new();
290295
for (key_str, amount) in old_state.balances.iter() {
291-
let key = <sr25519::Public as Ss58Codec>::from_ss58check(key_str).map_err(|e| e.to_string())?;
296+
let key =
297+
<sr25519::Public as Ss58Codec>::from_ss58check(key_str).map_err(|e| e.to_string())?;
292298
let key_account = sp_runtime::AccountId32::from(key);
293299

294300
processed_balances.push((key_account, *amount));

0 commit comments

Comments
 (0)