Skip to content

Commit caf2105

Browse files
author
Harry
committed
fix StateServiceStore.Contains
1 parent 60c2a04 commit caf2105

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bctklib/persistence/StateServiceStore.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ static byte[] GetLedgerCurrentBlock(ICachingClient rpcClient, uint index)
126126
}
127127
}
128128

129-
public bool Contains(byte[] key) => TryGet(key) == null;
129+
public bool Contains(byte[] key) => TryGet(key) != null;
130130

131131
public IEnumerable<(byte[] Key, byte[] Value)> Seek(byte[] key, SeekDirection direction)
132132
{

0 commit comments

Comments
 (0)