aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkiel barry <kiel.j.barry@gmail.com>2018-05-02 16:17:52 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-05-02 16:17:52 +0800
commitc1ea52757358d2e9d87c636a9519ffdc74ea8ac0 (patch)
treea50b7837c6c89c1761cc5f241819ae0069506396
parent448d17b8f735cbd16cf48351389c00630db9725a (diff)
downloadgo-tangerine-c1ea52757358d2e9d87c636a9519ffdc74ea8ac0.tar
go-tangerine-c1ea52757358d2e9d87c636a9519ffdc74ea8ac0.tar.gz
go-tangerine-c1ea52757358d2e9d87c636a9519ffdc74ea8ac0.tar.bz2
go-tangerine-c1ea52757358d2e9d87c636a9519ffdc74ea8ac0.tar.lz
go-tangerine-c1ea52757358d2e9d87c636a9519ffdc74ea8ac0.tar.xz
go-tangerine-c1ea52757358d2e9d87c636a9519ffdc74ea8ac0.tar.zst
go-tangerine-c1ea52757358d2e9d87c636a9519ffdc74ea8ac0.zip
accounts: golint updates for this or self warning (#16627)
-rw-r--r--accounts/abi/event.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/accounts/abi/event.go b/accounts/abi/event.go
index 595f169f3..a3f6be973 100644
--- a/accounts/abi/event.go
+++ b/accounts/abi/event.go
@@ -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