streamingfast / substreams-ethereum

Substreams development kit for Ethereum chains, contains Firehose Block model and helpers as well as utilities for Ethereum ABI encoding/decoding.
Apache License 2.0
22 stars 9 forks source link

fix abigen for events with alternating indexed & non-indexed params #1

Closed fubhy closed 2 years ago

fubhy commented 2 years ago

@maoueh Note that I only started learning Rust recently so if this PR doesn't make any sense or you want to implement this fix differently feel free to close it ;-)

fubhy commented 2 years ago

@maoueh I simplified this a lot (the problem was only that the param names (all of them) were zipped into the indexed & unindexed value iterators AFTER filtering them). So the ordering was simply incorrect after that.