Skip to content

Commit

Permalink
Apply review suggestions
Browse files Browse the repository at this point in the history
Signed-off-by: linning <[email protected]>
  • Loading branch information
NingLin-P committed Jul 31, 2023
1 parent 4f6caa9 commit 431cb89
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/subspace-node/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ fn subspace_genesis_config(
let raw_domain_genesis_config = {
let mut domain_genesis_config = evm_chain_spec::get_testnet_genesis_by_spec_id(spec_id);
// Clear the WASM code of the genesis config since it is duplicated with `GenesisDomain::code`
domain_genesis_config.system = Default::default();
domain_genesis_config.system.code = Default::default();
serde_json::to_vec(&domain_genesis_config)
.expect("Genesis config serialization never fails; qed")
};
Expand Down
3 changes: 2 additions & 1 deletion crates/subspace-node/src/domain/evm_chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ pub enum SpecId {
}

pub fn get_testnet_genesis_by_spec_id(spec_id: SpecId) -> GenesisConfig {
let accounts = get_dev_accounts();
match spec_id {
SpecId::Dev => {
let accounts = get_dev_accounts();
testnet_genesis(
accounts.clone(),
// Alith is Sudo
Expand Down Expand Up @@ -218,6 +218,7 @@ pub fn get_testnet_genesis_by_spec_id(spec_id: SpecId) -> GenesisConfig {
)
}
SpecId::Local => {
let accounts = get_dev_accounts();
testnet_genesis(
accounts.clone(),
// Alith is sudo
Expand Down
2 changes: 1 addition & 1 deletion test/subspace-test-client/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ fn create_genesis_config(
let raw_domain_genesis_config = {
let mut domain_genesis_config = testnet_evm_genesis();
// Clear the WASM code of the genesis config since it is duplicated with `GenesisDomain::code`
domain_genesis_config.system = Default::default();
domain_genesis_config.system.code = Default::default();
serde_json::to_vec(&domain_genesis_config)
.expect("Genesis config serialization never fails; qed")
};
Expand Down

0 comments on commit 431cb89

Please sign in to comment.