fix: uri.parse throwing on invalid node address (#3314)

This commit is contained in:
cyan
2026-06-08 15:06:29 +02:00
committed by GitHub
parent c7275cb6fe
commit 772f695872
+9
View File
@@ -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: