Created
July 8, 2020 09:23
-
-
Save MariusVanDerWijden/d9c7f69881395ffd3bbc015831b98e36 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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