From 8bb3c07e9680c4fa1a385d36978b5810213a7915 Mon Sep 17 00:00:00 2001 From: Guillaume Ballet Date: Mon, 24 Jun 2019 12:28:25 +0200 Subject: [PATCH] abi: rewrite comment --- accounts/abi/abi.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/accounts/abi/abi.go b/accounts/abi/abi.go index a9a63649db..c9e88e171e 100644 --- a/accounts/abi/abi.go +++ b/accounts/abi/abi.go @@ -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()) {