mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-26 06:08:40 +01:00
fix: uri.parse throwing on invalid node address (#3314)
This commit is contained in:
@@ -268,6 +268,15 @@ class Node {
|
||||
bool get useSocksProxy => socksProxyAddress == null ? false : socksProxyAddress!.isNotEmpty;
|
||||
|
||||
Uri get uri {
|
||||
try {
|
||||
return _uri;
|
||||
} catch (e) {
|
||||
printV(e);
|
||||
return Uri();
|
||||
}
|
||||
}
|
||||
|
||||
Uri get _uri {
|
||||
switch (type) {
|
||||
case WalletType.monero:
|
||||
case WalletType.zcash:
|
||||
|
||||
Reference in New Issue
Block a user