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) {