fix: uri.parse throwing on invalid node address (#3314)
cyan committed
Jun 8, 2026 at 15:06 UTC
772f695872fd3134c7e06d9467084a4baaf14db6
1 file changed
+9
cw_core/lib/node.dart
+9
@@ -268,6 +268,15 @@ class Node {
268
bool get useSocksProxy => socksProxyAddress == null ? false : socksProxyAddress!.isNotEmpty;
269
270
Uri get uri {
271
+ try {
272
+ return _uri;
273
+ } catch (e) {
274
+ printV(e);
275
+ return Uri();
276
+ }
277
+ }
278
+
279
+ Uri get _uri {
280
switch (type) {
281
case WalletType.monero:
282
case WalletType.zcash: