mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-02 20:36:44 +00:00
fix network enum error on startup in signet
This commit is contained in:
parent
93893111c6
commit
9ec5b6ce26
1 changed files with 5 additions and 1 deletions
|
@ -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…
Reference in a new issue