forked from cerc-io/ipld-eth-server
Remove todo on chunker non-match (it's basically a filter)
This commit is contained in:
parent
7cf694f5e7
commit
e54699c039
@ -55,7 +55,6 @@ func (chunker *LogChunker) ChunkLogs(logs []types.Log) map[string][]types.Log {
|
|||||||
// Topic0 is not unique to each transformer, also need to consider the contract address
|
// Topic0 is not unique to each transformer, also need to consider the contract address
|
||||||
relevantTransformers := chunker.AddressToNames[log.Address.String()]
|
relevantTransformers := chunker.AddressToNames[log.Address.String()]
|
||||||
|
|
||||||
// TODO What should happen if log can't be assigned?
|
|
||||||
for _, transformer := range relevantTransformers {
|
for _, transformer := range relevantTransformers {
|
||||||
if chunker.NameToTopic0[transformer] == log.Topics[0] {
|
if chunker.NameToTopic0[transformer] == log.Topics[0] {
|
||||||
chunks[transformer] = append(chunks[transformer], log)
|
chunks[transformer] = append(chunks[transformer], log)
|
||||||
|
Loading…
Reference in New Issue
Block a user