Skip to content

Commit

Permalink
accounts: golint updates for this or self warning (ethereum#16627)
Browse files Browse the repository at this point in the history
  • Loading branch information
kielbarry authored and mariameda committed Aug 19, 2018
1 parent 0b190fc commit 5d5db61
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions accounts/abi/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ type Event struct {
Inputs Arguments
}

func (event Event) String() string {
inputs := make([]string, len(event.Inputs))
for i, input := range event.Inputs {
func (e Event) String() string {
inputs := make([]string, len(e.Inputs))
for i, input := range e.Inputs {
inputs[i] = fmt.Sprintf("%v %v", input.Name, input.Type)
if input.Indexed {
inputs[i] = fmt.Sprintf("%v indexed %v", input.Name, input.Type)
}
}
return fmt.Sprintf("event %v(%v)", event.Name, strings.Join(inputs, ", "))
return fmt.Sprintf("e %v(%v)", e.Name, strings.Join(inputs, ", "))
}

// Id returns the canonical representation of the event's signature used by the
Expand Down

0 comments on commit 5d5db61

Please sign in to comment.