From c73f35a21ea6ed2330b6952edd76a6190cf8b929 Mon Sep 17 00:00:00 2001 From: Mohammed Sohail Date: Wed, 6 Sep 2023 16:16:23 +0800 Subject: [PATCH] filer: add SRF voucher --- internal/filter/address_filter.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/filter/address_filter.go b/internal/filter/address_filter.go index 3467107..b364c65 100644 --- a/internal/filter/address_filter.go +++ b/internal/filter/address_filter.go @@ -9,6 +9,7 @@ import ( const ( KRNVoucherAddress = "0x8bab657c88eb3c724486d113e650d2c659aa23d2" + SRFVoucherAddress = "0x45d747172e77d55575c197cba9451bc2cd8f4958" ) type ( @@ -28,7 +29,7 @@ func NewAddressFilter(o AddressFilterOpts) Filter { } func (f *AddressFilter) Execute(_ context.Context, transaction *fetch.Transaction) (bool, error) { - if transaction.To.Address == KRNVoucherAddress { + if transaction.To.Address == KRNVoucherAddress || transaction.To.Address == SRFVoucherAddress { return true, nil }