From fa8056cc6dfefbc22f624051fdc00a9d34b5c3a0 Mon Sep 17 00:00:00 2001 From: Farber98 Date: Tue, 13 Aug 2024 10:45:25 -0300 Subject: [PATCH] add address to query name in GetLatestValue and QueryKey --- core/services/relay/evm/event_binding.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/services/relay/evm/event_binding.go b/core/services/relay/evm/event_binding.go index f93267a40b0..28e8186252b 100644 --- a/core/services/relay/evm/event_binding.go +++ b/core/services/relay/evm/event_binding.go @@ -169,7 +169,7 @@ func (e *eventBinding) QueryKey(ctx context.Context, filter query.KeyFilter, lim } remapped.Expressions = append(defaultExpressions, remapped.Expressions...) - logs, err := e.lp.FilteredLogs(ctx, remapped, limitAndSort, e.contractName+"-"+e.eventName) + logs, err := e.lp.FilteredLogs(ctx, remapped, limitAndSort, e.contractName+"-"+e.address.String()+"-"+e.eventName) if err != nil { return nil, err } @@ -241,7 +241,7 @@ func (e *eventBinding) getLatestValueWithFilters( } // Gets the latest log that matches the filter and limiter. - logs, err := e.lp.FilteredLogs(ctx, filter, limiter, e.contractName+"-"+e.eventName) + logs, err := e.lp.FilteredLogs(ctx, filter, limiter, e.contractName+"-"+e.address.String()+"-"+e.eventName) if err != nil { return wrapInternalErr(err) }