mirror of
				https://github.com/grassrootseconomics/cic-chain-events.git
				synced 2025-11-03 17:11:19 +01:00 
			
		
		
		
	filer: add SRF voucher
This commit is contained in:
		
							parent
							
								
									892a075fa0
								
							
						
					
					
						commit
						c73f35a21e
					
				@ -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
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user