Skip to content

Commit

Permalink
Fix event_bindings merge issue
Browse files Browse the repository at this point in the history
  • Loading branch information
reductionista committed Sep 25, 2024
1 parent a5df432 commit f703802
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
golang 1.22.5
golang 1.22.7
mockery 2.43.2
nodejs 20.13.1
pnpm 9.4.0
Expand All @@ -8,4 +8,4 @@ zig 0.11.0
golangci-lint 1.59.1
protoc 25.1
python 3.10.5
task 3.35.1
task 3.35.1
6 changes: 6 additions & 0 deletions core/services/relay/evm/event_binding.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,14 @@ func (e *eventBinding) getLatestValueWithFilters(
return err
}

fai := filtersAndIndices[0]
remainingFilters := filtersAndIndices[1:]

logs, err := e.lp.IndexedLogs(ctx, e.hash, e.address, 1, []common.Hash{fai}, confs)
if err != nil {
return wrapInternalErr(err)
}

// TODO Use filtered logs here BCF-3316
// TODO: there should be a better way to ask log poller to filter these
// First, you should be able to ask for as many topics to match
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/.tool-versions
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
golang 1.22.5
golang 1.22.7
k3d 5.4.6
kubectl 1.25.5
nodejs 20.13.1
Expand Down

0 comments on commit f703802

Please sign in to comment.