From c6e2e2431a641eeec66fb3d21898478a506ec4cf Mon Sep 17 00:00:00 2001 From: kane Date: Wed, 14 Nov 2018 00:49:33 -0500 Subject: [PATCH] accounts/abi: inputs[i] assigned twice --- accounts/abi/event.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/accounts/abi/event.go b/accounts/abi/event.go index a3f6be9732..ea6f75586a 100644 --- a/accounts/abi/event.go +++ b/accounts/abi/event.go @@ -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, ", "))