mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2025-03-17 21:32:33 +01:00
fix network enum error on startup in signet
This commit is contained in:
parent
93893111c6
commit
9ec5b6ce26
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user