Skip to content

Commit

Permalink
Update GenesisConfigFile.java
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdelStark committed Apr 24, 2019
1 parent d051f3e commit 08bedbf
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,17 @@ private GenesisConfigFile(final JsonObject config) {

public static GenesisConfigFile mainnet() {
try {
return fromConfig(Resources.toString(Resources.getResource("mainnet.json"), UTF_8));
return fromConfig(
Resources.toString(GenesisConfigFile.class.getResource("/mainnet.json"), UTF_8));
} catch (final IOException e) {
throw new IllegalStateException(e);
}
}

public static GenesisConfigFile development() {
try {
return fromConfig(Resources.toString(Resources.getResource("dev.json"), UTF_8));
return fromConfig(
Resources.toString(GenesisConfigFile.class.getResource("/dev.json"), UTF_8));
} catch (final IOException e) {
throw new IllegalStateException(e);
}
Expand Down

0 comments on commit 08bedbf

Please sign in to comment.