Skip to content

Commit

Permalink
Merge pull request #99 from cardano-foundation/fix_96
Browse files Browse the repository at this point in the history
fix: #96 add condition to verify if network is testnet
  • Loading branch information
Sotatek-HuyLe3a authored Dec 4, 2023
2 parents 3fc0b97 + 645fccd commit 4827629
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ public static boolean isLoveLace (byte[] data){
public static final int SLOT_LEADER_LENGTH = 28;

public static boolean isTestnet(int networkMagic) {
return networkMagic == TESTNET
|| networkMagic == PREPROD_TESTNET
|| networkMagic == PREVIEW_TESTNET;
return networkMagic != MAINNET;
}
}

0 comments on commit 4827629

Please sign in to comment.