accounts/abi: inputs[i] assigned twice

This commit is contained in:
kane 2018-11-14 00:49:33 -05:00
parent c41e1bd1eb
commit c6e2e2431a

View file

@ -36,9 +36,10 @@ type Event struct {
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)
} else {
inputs[i] = fmt.Sprintf("%v %v", input.Name, input.Type)
}
}
return fmt.Sprintf("e %v(%v)", e.Name, strings.Join(inputs, ", "))