filer: add SRF voucher

This commit is contained in:
Mohamed Sohail 2023-09-06 16:16:23 +08:00
parent 892a075fa0
commit c73f35a21e
Signed by: kamikazechaser
GPG Key ID: 7DD45520C01CD85D

View File

@ -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
}