Skip to content

Instantly share code, notes, and snippets.

@MariusVanDerWijden
Created July 8, 2020 09:23
Show Gist options
  • Save MariusVanDerWijden/d9c7f69881395ffd3bbc015831b98e36 to your computer and use it in GitHub Desktop.
Save MariusVanDerWijden/d9c7f69881395ffd3bbc015831b98e36 to your computer and use it in GitHub Desktop.
// Filter for a Deposited event
filterOpts := &bind.FilterOpts{Context: ctx, Start: 9000000, End: nil}
itr, err := ctr.FilterDeposited(filterOpts)
// Loop over all found events
for itr.Next() {
event := itr.Event
// Print out all caller addresses
fmt.Printf(event.Addr.Hex())
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment