Skip to content

Commit

Permalink
fix StateServiceStore.Contains
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry committed Jun 27, 2022
1 parent 60c2a04 commit caf2105
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bctklib/persistence/StateServiceStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit caf2105

Please sign in to comment.