From 08bedbf53a764b34f66230315c1139e7bb66fee8 Mon Sep 17 00:00:00 2001 From: Abdelhamid Bakhta Date: Wed, 24 Apr 2019 14:36:15 +0200 Subject: [PATCH] Update GenesisConfigFile.java --- .../tech/pegasys/pantheon/config/GenesisConfigFile.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config/src/main/java/tech/pegasys/pantheon/config/GenesisConfigFile.java b/config/src/main/java/tech/pegasys/pantheon/config/GenesisConfigFile.java index 2bab85be0d..bb40077160 100644 --- a/config/src/main/java/tech/pegasys/pantheon/config/GenesisConfigFile.java +++ b/config/src/main/java/tech/pegasys/pantheon/config/GenesisConfigFile.java @@ -36,7 +36,8 @@ 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); } @@ -44,7 +45,8 @@ public static GenesisConfigFile mainnet() { 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); }