Skip to content

Commit

Permalink
chore: added config support for preview and sanchonet
Browse files Browse the repository at this point in the history
  • Loading branch information
nemo83 committed Jul 12, 2024
1 parent d72cac1 commit 4c6687c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4c6687c

Please sign in to comment.