Skip to content

Commit

Permalink
Restore CONFIG_NAME=prater (#5950)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajsutton authored Jul 19, 2022
1 parent 2f60ec0 commit f65b5ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
PRESET_BASE: 'mainnet'

# For backwards compatibility in the config/spec API
CONFIG_NAME: "goerli"
CONFIG_NAME: "prater"

# Transition
# ---------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ public void shouldLoadAllKnownNetworks(final String name, final Class<?> configT
@ValueSource(strings = {"prater", "mainnet"})
public void shouldMaintainConfigNameBackwardsCompatibility(final String name) {
final SpecConfig config = SpecConfigLoader.loadConfig(name);
final String expectedName = name.equals("prater") ? "goerli" : name;
assertThat(config.getRawConfig().get("CONFIG_NAME")).isEqualTo(expectedName);
assertThat(config.getRawConfig().get("CONFIG_NAME")).isEqualTo(name);
}

@Test
Expand Down

0 comments on commit f65b5ae

Please sign in to comment.