Skip to content

Commit 3404d90

Browse files
authored
loom: Fix spec file build issue (#650)
Signed-off-by: Shreevatsa N <vatsa@dhiway.com>
1 parent db7c365 commit 3404d90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

node/cli/src/chain_spec/bootstrap.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ fn cord_braid_custom_config_genesis(config: ChainParams) -> serde_json::Value {
162162
)
163163
}
164164

165-
/* TODO: Refer from weave to update below */
166165
fn cord_loom_custom_config_genesis(config: ChainParams) -> serde_json::Value {
167166
let initial_authorities: Vec<(
168167
AccountId,
@@ -188,7 +187,8 @@ fn cord_loom_custom_config_genesis(config: ChainParams) -> serde_json::Value {
188187
})
189188
.collect();
190189

191-
let initial_sudo_key: AccountId = array_bytes::hex_n_into_unchecked(&config.sudo_key);
190+
let initial_sudo_key: AccountId = array_bytes::hex_n_into_unchecked(&config.authorities[0][0]);
191+
192192
cord_loom_custom_genesis(initial_authorities, initial_sudo_key)
193193
}
194194

0 commit comments

Comments
 (0)