abi: rewrite comment

This commit is contained in:
Guillaume Ballet 2019-06-24 12:28:25 +02:00
parent 17ea9f0e64
commit 8bb3c07e96

View file

@ -148,8 +148,8 @@ func (abi *ABI) MethodById(sigdata []byte) (*Method, error) {
return nil, fmt.Errorf("no method with id: %#x", sigdata[:4])
}
// EventByID looks up a event by the topic hash
// returns nil if none found
// EventByID looks an event up by its topic hash in the
// ABI and returns nil if none found.
func (abi *ABI) EventByID(topic common.Hash) (*Event, error) {
for _, event := range abi.Events {
if bytes.Equal(event.Id().Bytes(), topic.Bytes()) {