Skip to content

Commit

Permalink
linker fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
AnkushinDaniil authored and kirugan committed Aug 2, 2024
1 parent d33c03d commit 79ce967
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions grpc/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"bytes"
"context"
"fmt"
"slices"

"github.com/Masterminds/semver/v3"
"github.com/NethermindEth/juno/db"
Expand Down Expand Up @@ -93,13 +94,13 @@ func (h Handler) handleTxCursor(

switch cur.Op {
case gen.Op_SEEK:
key := append(cur.BucketName, cur.K...)
key := slices.Concat(cur.BucketName, cur.K)
if it.Seek(key) {
responsePair.K = it.Key()
responsePair.V, err = it.Value()
}
case gen.Op_SEEK_EXACT:
key := append(cur.BucketName, cur.K...)
key := slices.Concat(cur.BucketName, cur.K)
if it.Seek(key) && bytes.Equal(it.Key(), key) {
responsePair.K = it.Key()
responsePair.V, err = it.Value()
Expand Down

0 comments on commit 79ce967

Please sign in to comment.