mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
abi: rewrite comment
This commit is contained in:
parent
17ea9f0e64
commit
8bb3c07e96
1 changed files with 2 additions and 2 deletions
|
|
@ -148,8 +148,8 @@ func (abi *ABI) MethodById(sigdata []byte) (*Method, error) {
|
||||||
return nil, fmt.Errorf("no method with id: %#x", sigdata[:4])
|
return nil, fmt.Errorf("no method with id: %#x", sigdata[:4])
|
||||||
}
|
}
|
||||||
|
|
||||||
// EventByID looks up a event by the topic hash
|
// EventByID looks an event up by its topic hash in the
|
||||||
// returns nil if none found
|
// ABI and returns nil if none found.
|
||||||
func (abi *ABI) EventByID(topic common.Hash) (*Event, error) {
|
func (abi *ABI) EventByID(topic common.Hash) (*Event, error) {
|
||||||
for _, event := range abi.Events {
|
for _, event := range abi.Events {
|
||||||
if bytes.Equal(event.Id().Bytes(), topic.Bytes()) {
|
if bytes.Equal(event.Id().Bytes(), topic.Bytes()) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue