From caf210520bb67d9c0323d769759b7f64dda23ec3 Mon Sep 17 00:00:00 2001 From: Harry Date: Mon, 27 Jun 2022 11:25:12 -0700 Subject: [PATCH] fix StateServiceStore.Contains --- src/bctklib/persistence/StateServiceStore.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bctklib/persistence/StateServiceStore.cs b/src/bctklib/persistence/StateServiceStore.cs index cae398e..5a4ae55 100644 --- a/src/bctklib/persistence/StateServiceStore.cs +++ b/src/bctklib/persistence/StateServiceStore.cs @@ -126,7 +126,7 @@ static byte[] GetLedgerCurrentBlock(ICachingClient rpcClient, uint index) } } - public bool Contains(byte[] key) => TryGet(key) == null; + public bool Contains(byte[] key) => TryGet(key) != null; public IEnumerable<(byte[] Key, byte[] Value)> Seek(byte[] key, SeekDirection direction) {