From 772f695872fd3134c7e06d9467084a4baaf14db6 Mon Sep 17 00:00:00 2001 From: cyan Date: Mon, 8 Jun 2026 15:06:29 +0200 Subject: [PATCH] fix: uri.parse throwing on invalid node address (#3314) --- cw_core/lib/node.dart | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cw_core/lib/node.dart b/cw_core/lib/node.dart index b7f2703b8..24346fae0 100644 --- a/cw_core/lib/node.dart +++ b/cw_core/lib/node.dart @@ -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: