From 659e8f5547b207d687e2ed1018e9d4e7e9c27302 Mon Sep 17 00:00:00 2001 From: Mohammed Sohail Date: Mon, 10 Jul 2023 11:59:21 +0800 Subject: [PATCH] main: register approve filter --- cmd/service/filters.go | 7 +++++++ cmd/service/main.go | 1 + 2 files changed, 8 insertions(+) diff --git a/cmd/service/filters.go b/cmd/service/filters.go index ff1c3b5..2a9041c 100644 --- a/cmd/service/filters.go +++ b/cmd/service/filters.go @@ -91,6 +91,13 @@ func initRegisterFilter(pub *pub.Pub) filter.Filter { }) } +func initApproveFilter(pub *pub.Pub) filter.Filter { + return filter.NewApproveFilter(filter.ApproveFilterOpts{ + Pub: pub, + Logg: lo, + }) +} + func initTokenIndexFilter(cache *sync.Map, pub *pub.Pub) filter.Filter { return filter.NewTokenIndexFilter(filter.TokenIndexFilterOpts{ Cache: cache, diff --git a/cmd/service/main.go b/cmd/service/main.go index ea82a5f..3a7dac8 100644 --- a/cmd/service/main.go +++ b/cmd/service/main.go @@ -65,6 +65,7 @@ func main() { initGasGiftFilter(jsPub), initTransferFilter(jsPub), initRegisterFilter(jsPub), + initApproveFilter(jsPub), initTokenIndexFilter(cache, jsPub), }, Logg: lo,