From 8453cd56d9bcf079b194331c1e2ed9796b5a5449 Mon Sep 17 00:00:00 2001 From: minhthanh Date: Thu, 8 Aug 2024 10:08:43 +0700 Subject: [PATCH] remove check addr for hashflow (#62) --- pkg/parser/hashflow_v3/parser.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/parser/hashflow_v3/parser.go b/pkg/parser/hashflow_v3/parser.go index 521030d..88708cf 100644 --- a/pkg/parser/hashflow_v3/parser.go +++ b/pkg/parser/hashflow_v3/parser.go @@ -140,7 +140,6 @@ func (p *Parser) getRFQOrderParams(callFrame *tradingTypes.CallFrame) (*OrderRFQ } func (p *Parser) LogFromExchange(log ethereumTypes.Log) bool { - return strings.EqualFold(log.Address.String(), parser.AddrHashflowV3) && - len(log.Topics) > 0 && + return len(log.Topics) > 0 && strings.EqualFold(log.Topics[0].String(), p.eventHash) }