@@ -148,8 +148,9 @@ public Network getSupportedNetwork() {
148
148
return switch (networkMagic ) {
149
149
case Constants .MAINNET_NETWORK_MAGIC -> Networks .mainnet ();
150
150
case Constants .PREPROD_NETWORK_MAGIC -> Networks .preprod ();
151
- case Constants .TESTNET_NETWORK_MAGIC -> Networks .testnet ();
152
- case Constants .DEVNET_NETWORK_MAGIC -> new Network (0b0000, Constants .DEVKIT_PROTOCOL_MAGIC );
151
+ case Constants .PREVIEW_NETWORK_MAGIC -> Networks .preview ();
152
+ case Constants .SANCHONET_NETWORK_MAGIC -> new Network (0b0000, Constants .SANCHONET_NETWORK_MAGIC );
153
+ case Constants .DEVKIT_NETWORK_MAGIC -> new Network (0b0000, Constants .DEVKIT_NETWORK_MAGIC );
153
154
default -> throw ExceptionFactory .invalidNetworkError ();
154
155
};
155
156
}
@@ -215,19 +216,16 @@ private boolean verifyNetwork(String network) {
215
216
Network supportedNetwork = getSupportedNetwork ();
216
217
217
218
switch ((int ) supportedNetwork .getProtocolMagic ()) {
218
- case Constants .MAINNET_PROTOCOL_MAGIC -> {
219
+ case Constants .MAINNET_NETWORK_MAGIC -> {
219
220
return network .equalsIgnoreCase (Constants .MAINNET );
220
221
}
221
- case Constants .TESTNET_PROTOCOL_MAGIC -> {
222
- return network .equalsIgnoreCase (Constants .TESTNET );
223
- }
224
- case Constants .PREPROD_PROTOCOL_MAGIC -> {
222
+ case Constants .PREPROD_NETWORK_MAGIC -> {
225
223
return network .equals (Constants .PREPROD );
226
224
}
227
- case Constants .PREVIEW_PROTOCOL_MAGIC -> {
225
+ case Constants .PREVIEW_NETWORK_MAGIC -> {
228
226
return network .equals (Constants .PREVIEW );
229
227
}
230
- case Constants .DEVKIT_PROTOCOL_MAGIC -> {
228
+ case Constants .DEVKIT_NETWORK_MAGIC -> {
231
229
return network .equals (Constants .DEVKIT );
232
230
}
233
231
default -> {
0 commit comments