mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-04 21:36:45 +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() {
|
public SamouraiNetwork getSamouraiNetwork() {
|
||||||
|
try {
|
||||||
return SamouraiNetwork.valueOf(Network.get().getName().toUpperCase(Locale.ROOT));
|
return SamouraiNetwork.valueOf(Network.get().getName().toUpperCase(Locale.ROOT));
|
||||||
|
} catch(IllegalArgumentException e) {
|
||||||
|
return SamouraiNetwork.TESTNET;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public Whirlpool getWhirlpool(Wallet wallet) {
|
public Whirlpool getWhirlpool(Wallet wallet) {
|
||||||
|
|
Loading…
Reference in a new issue