Skip to content

Commit

Permalink
Detect Gnosis via preset_base
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhauner committed Aug 6, 2023
1 parent 683c461 commit b35c1dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/eth2_network_config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ mod tests {
.unwrap_or_else(|_| panic!("{:?}", net.name));

// Ensure we can parse the YAML config to a chain spec.
if net.name == types::GNOSIS {
if config.config.preset_base == types::GNOSIS {
config.chain_spec::<GnosisEthSpec>().unwrap();
} else {
config.chain_spec::<MainnetEthSpec>().unwrap();
Expand Down

0 comments on commit b35c1dc

Please sign in to comment.