diff --git a/src/main/java/org/cardanofoundation/conversions/ClasspathConversionsFactory.java b/src/main/java/org/cardanofoundation/conversions/ClasspathConversionsFactory.java index 2603beb..27c6b8d 100644 --- a/src/main/java/org/cardanofoundation/conversions/ClasspathConversionsFactory.java +++ b/src/main/java/org/cardanofoundation/conversions/ClasspathConversionsFactory.java @@ -18,7 +18,7 @@ private ClasspathConversionsFactory() {} public static ConversionsConfig create(NetworkType networkType) { return switch (networkType) { - case MAINNET, PREPROD -> { + case MAINNET, PREPROD, PREVIEW, SANCHONET -> { var loader = ClasspathConversionsFactory.class.getClassLoader(); var byronLink = loader.getResource(getGenesisEraClasspathLink(Byron, networkType)); diff --git a/src/main/java/org/cardanofoundation/conversions/domain/NetworkType.java b/src/main/java/org/cardanofoundation/conversions/domain/NetworkType.java index f9130f2..e2579fc 100644 --- a/src/main/java/org/cardanofoundation/conversions/domain/NetworkType.java +++ b/src/main/java/org/cardanofoundation/conversions/domain/NetworkType.java @@ -5,6 +5,7 @@ public enum NetworkType { LEGACY_TESTNET(1_097_911_063L, 432_000L), PREPROD(1L, 432_000L), PREVIEW(2L, 86_400L), + SANCHONET(4L, 86_400L), DEV(42L, 432_000L); private final long protocolMagic;