mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2026-08-09 08:14:43 +00:00
fix network enum error on startup in signet
This commit is contained in:
@@ -61,7 +61,11 @@ public class WhirlpoolServices {
|
||||
}
|
||||
|
||||
public SamouraiNetwork getSamouraiNetwork() {
|
||||
return SamouraiNetwork.valueOf(Network.get().getName().toUpperCase(Locale.ROOT));
|
||||
try {
|
||||
return SamouraiNetwork.valueOf(Network.get().getName().toUpperCase(Locale.ROOT));
|
||||
} catch(IllegalArgumentException e) {
|
||||
return SamouraiNetwork.TESTNET;
|
||||
}
|
||||
}
|
||||
|
||||
public Whirlpool getWhirlpool(Wallet wallet) {
|
||||
|
||||
Reference in New Issue
Block a user