From befc402057093a478d9fbee31b98b20780ec08e7 Mon Sep 17 00:00:00 2001 From: julian Date: Mon, 27 Nov 2023 15:06:37 -0600 Subject: [PATCH] ensure set call runs smoothly --- lib/electrumx_rpc/cached_electrumx_client.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/electrumx_rpc/cached_electrumx_client.dart b/lib/electrumx_rpc/cached_electrumx_client.dart index 946448bb1..0cec664b8 100644 --- a/lib/electrumx_rpc/cached_electrumx_client.dart +++ b/lib/electrumx_rpc/cached_electrumx_client.dart @@ -183,7 +183,7 @@ class CachedElectrumXClient { // ensure we are getting some overlap so we know we are not missing any if (cachedSerials.isNotEmpty && newSerials.isNotEmpty) { - assert(cachedSerials.contains(newSerials.first)); + assert(cachedSerials.intersection(newSerials).isNotEmpty); } cachedSerials.addAll(newSerials);