Skip to content

Commit

Permalink
chore: Only use bvp for keying memstore - fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
epociask committed Jul 11, 2024
1 parent 9ec7f59 commit cdc1ead
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/memory_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func (e *MemStore) Get(ctx context.Context, commit []byte, domain DomainType) ([

var encodedBlob []byte
var exists bool
if encodedBlob, exists = e.store[string(commit)]; !exists {
if encodedBlob, exists = e.store[string(cert.BlobVerificationProof.InclusionProof)]; !exists {
return nil, fmt.Errorf("commitment key not found")
}

Expand Down
2 changes: 1 addition & 1 deletion server/memory_store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func TestGetSet(t *testing.T) {

actual, err := ms.Get(ctx, key, BinaryDomain)
assert.NoError(t, err)
assert.Equal(t, actual, expected)
assert.Equal(t, expected, actual)
}

func TestExpiration(t *testing.T) {
Expand Down

0 comments on commit cdc1ead

Please sign in to comment.